How to onekey to restart a program in Windows
Sometimes, I need to restart a program frequently. So I write this script, to easily quckly restart a program. Here are steps:
- Save following code as restart.bat.
taskkill /F /IM [process's name] ./start.vbs
- Save following code as start.vbs, in the same directory.
Set ws = CreateObject("WScript.Shell") ws.Run "[the full path of exe file]"
- Just double click the restart.bat
Leave a Comment
Your email address will not be published. Required fields are marked *