Not long ago faced the problem, I needed to do automatically shut down the PC. Often when watching movies fell asleep, it was not very convenient because the laptop or worked all night, or until discharged battery. I needed to make automatic shutdown PC, and other, non-licensed software I don't like. Have I made it using the normal Windows. Now I'll tell you how to do it.
Instruction
Difficulty level: Easy
What you will need:
Computer, laptop
Windows
step 1
Create text document. txt, open it and change the extension to. bat .
2 step
Will continue to write code in my case it shutdown-f-s-t 30
Here is the full command description
Usage: _shutdown [-i | - l | - s | - r | - a] [-f] [-m \\<computer>]
[-t xx] [-c comment ] [-d up:xx:yy]
Without arguments displays help on the use (and is?)
-i Display interface, must be the first parameter
-l Output (not compatible with the-m option)
-s Shutdown the computer
-r restart the computer
-a termination of the shutdown system
-m \\<computer> Remote the computer that is running
action
-t xx Timeout shutdown xx sec.
-c Comment (maximum of 127 characters)
-f Force applications to terminate without
notice
-d [u][p]:xx:yy the reason Code for the shutdown
u user code
p code is scheduled to be completed
the xx basic reason code (1 to 255)
yy additional reason code (1 to 65535)_
3 step
Save and move it to facilities on drive C.
step 4
Further, it is necessary to find the standard Windows task Scheduler . It can be start All programs accessories system tools Scheduler jobs that run.
5 step
In the program window, select Create basic task and follow the wizard. In step action you choose to run the program and select our newly created file. The computer is off at that time you indicated.
6 step
If you want to make a timer that shutdown-f-s-t 30 where 30 is the time in seconds that you specify after how many PC should shut down and startup file.
No comments:
Post a Comment