I'm having problems using WSH with applications that are not located in the C:\Windows Directory; they are in my Program Files folder. I get an error message anytime I try to run any application that is not located in C:\Windows. I suspected modifying the path in the autoexec.bat file might help but I don't want to have to do that for every single program i want to automate.
Example
set WshShell = CreateObject("WScript.Shell"
WshShell.Run "notepad.exe"
WScript.Sleep 1000
WshShell.AppActivate "notepad"
This works great but if I try to use this script to open Procomm or PGP 7.0 then I have problems. Any pointers?!
OS: windows 98 SE.
Example
set WshShell = CreateObject("WScript.Shell"
WshShell.Run "notepad.exe"
WScript.Sleep 1000
WshShell.AppActivate "notepad"
This works great but if I try to use this script to open Procomm or PGP 7.0 then I have problems. Any pointers?!
OS: windows 98 SE.