Automatically restarting an application in Windows
1 2 Set WshShell = CreateObject("WScript.Shell") 3 Do While True 4 WshShell.Run """<the path to the executable file>""", 1, True 5 Loop
The pairs of double quotes inside the quoted string prevent "file not found" errors if the path contains spaces. The Run method is documented here, in case you want to change the window style (the second argument).