1.

Solve : batch file for pc autoshutdown?

Answer»

jst wana ask f ders any way to shutdown,restart or LOG off PC on a specified time using batch file?for example i want to shutdown my pc after 2hrs after log on or shutdown it on a specified pc time EXMPLE shutdwon on 12:30am..tnx n advance..

i ned dis due to some antivirus w/c do not have autoshutdown after scanning..tnx a lot..Check to see if you have the shutdown command installed on your machine. On XP machines it will be in the c:\windows\system32 directory. By using the shutdown command and either a script or the scheduler, you should be able to set something up like this:

Code: [Select]run AV
shutdown -s -t 30

Quote from: Sidewinder on January 01, 2008, 05:26:46 AM

Code: [Select]run AV
shutdown -s -t 30


you can do that, but if you want a more...exact time then do
Code: [Select]at (time) shutdown -s -t 10and it should WORK


Discussion

No Comment Found