I have a simple vbscript which runs an Exe program both vbscript and exe program are in the same folder c:\xxx, i want this script to run every time the machine restarts as we have 40 servers and restarting manually is not feasible.
I have added a value into the registry HKEY_CURRENT_USER/software/microsoft/windows/currentversion/Run
When i restart the server it says "file not found", both vbscript and Exe are definitely in the correct folder.
If i run the VBscript manually it works fine.
The script is as follows
Set wshshell = wscript.CreateObject("WScript.Shell")