I did a program to sign in and sign out of an application. I created a service (Windows batch file) and added the batch file in to windows start up programs. So my program starting automatically when I start my system (i.e. sign in to application). This is working fine. Now I wanted to know is there any way to run my service (Windows batch file) before shutdown my system ?
Asked
Active
Viewed 145 times
0
-
a BAT file in the startup folder is not a Windows service, so it does not get notified of shutdown events. – PA. Apr 23 '14 at 10:50
-
okay, Is there any way to run bat file on shutdown event – Vinod Apr 23 '14 at 10:51
-
yes. See http://stackoverflow.com/questions/12434863/executing-a-batch-script-on-windows-shutdown – PA. Apr 23 '14 at 10:52
-
Will try and let you know – Vinod Apr 23 '14 at 10:54