How do you make a bat file launch at shutdown

thatNickdude

Commendable
Jul 6, 2016
27
0
1,530
Hi I have a problem I need to launch a bat file at start up and shutdown, I have figured how to do it at startup, (WIN + R then shell:startup), but not shutdown, so can someone tell how to make a bat file run at shut down (even if you need gpedit or registry) please reply with step be step instructions, thanks :D (I'm using this for a backup system for a ram drive and I don't want to install programs)
 
Solution
Well... the way I see it, this can't be done, since shutdown itself will initiate closing of all apps and prevent creation of new tasks.

What you can do, though, is create a batch file which can be run manually, performing all your desired tasks and then initiate shutdown at the end as the last command.

http://www.computerhope.com/issues/ch000321.htm

So basically, instead of clicking "shut down" in windows, you would start your batch file manually.
Well... the way I see it, this can't be done, since shutdown itself will initiate closing of all apps and prevent creation of new tasks.

What you can do, though, is create a batch file which can be run manually, performing all your desired tasks and then initiate shutdown at the end as the last command.

http://www.computerhope.com/issues/ch000321.htm

So basically, instead of clicking "shut down" in windows, you would start your batch file manually.
 
Solution

TRENDING THREADS