Changing location of where wscript.exe looks for VBScripts.
I have the following value set in the value set so that a launch script automatically starts at logon:
"C:\Windows\SysWOW64\wscript.exe" "c:\program files (x86)\<directory>\nameofscript.vbs" <argument1>
At logon the script does start, but I'm presented with the error message:
"Can not find script file "C:\Program files\<directory>\nameofscript.vbs"
It then proceeds to launch the script correctly, but I'm still faced with the error message.
So apparently even if I hardcode the %programfiles(x86)% it still looks first in %programfiles%, even though the key is in the 32-bit hive and I'm using the 32-bit version of wscript.exe.
How do I change this behaviour, so that it first looks in %programfiles(x86)%?