Executing a batch script on Windows shutdown

前端 未结 6 620
旧巷少年郎
旧巷少年郎 2020-12-08 06:55

Is there any way, in Windows 7 Professional, to run a batch script (e.g., a .BAT file) when the user clicks on \"shutdown\" (not a batch file scheduled to shut

6条回答
  •  天命终不由人
    2020-12-08 07:36

    I found this topic while searching for run script for startup and shutdown Windows 10. Those answers above didn't working. For me on windows 10 worked when I put scripts to task scheduler. How to do this: press window key and write Task scheduler, open it, then on the right is Add task... button. Here you can add scripts. PS: I found action for startup and logout user, there is not for shutdown.

提交回复
热议问题