New
#1
Batch file to shutdown system one day a week, hibernate it other days
Version 22H2.
I need to properly code a batch file to shutdown my system one day a week (I've chosen Wednesdays), and hibernate it other days.
I am aware of "shutdown /h" and "shutdown /s /hybrid" but want to know how to create the variable for the day of the week (numeric or string), and format the "if" command to run when the variable matches.