Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Windows (http://www.go4expert.com/forums/windows-forum/)
-   -   how to run a batch file when windows shutdown. (http://www.go4expert.com/forums/run-batch-file-windows-shutdown-t17619/)

adroit89 20May2009 10:09

how to run a batch file when windows shutdown.
 
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.

!Newbie! 20May2009 10:47

Re: how to run a batch file when windows shutdown.
 
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.

adroit89 20May2009 11:10

Re: how to run a batch file when windows shutdown.
 
i dont want the batch file to shutdown the system.i want a batch file to run when ever user shutdowns his system.

pradeep 22May2009 14:02

Re: how to run a batch file when windows shutdown.
 
http://windowsitpro.com/article/arti...down-time.html

pradeep 22May2009 16:11

Re: how to run a batch file when windows shutdown.
 
http://sysadmingear.blogspot.com/200...n-windows.html


All times are GMT +5.5. The time now is 03:06.