how to run a batch file when windows shutdown.

adroit89's Avatar
Go4Expert Member
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.
0
!Newbie!'s Avatar, Join Date: Apr 2009
Ambitious contributor
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.
0
adroit89's Avatar
Go4Expert Member
i dont want the batch file to shutdown the system.i want a batch file to run when ever user shutdowns his system.
0
0