how to run a batch file when windows shutdown.

Go4Expert Member
20May2009,10:09   #1
adroit89's Avatar
hii guys...i want to know how we run a batch file when windows is shutting down.i just want to write the time of shutdown into a text file using the batch file.
Ambitious contributor
20May2009,10:47   #2
!Newbie!'s Avatar
Create a batch file with the following commands.
cd\
shutdown -s -t 60

You could also use the Scheduled task app to schedule a shutdown at a specified time.
Go4Expert Member
20May2009,11:10   #3
adroit89's Avatar
i dont want the batch file to shutdown the system.i want a batch file to run when ever user shutdowns his system.