That's my question...and I'm able to get this to work by doing this:
set WshShell = CreateObject ("WScript.Shell"
WshShell.Run "D:\Progra~1\Micros~1\Office\Winword.exe"
However, what if I run this on another machine and the path is not on the D:, but the C:. Instead of changing the path to C:, I'd like the VBS to find winword.exe and launch it.
How do I do this?
Thanks
set WshShell = CreateObject ("WScript.Shell"
WshShell.Run "D:\Progra~1\Micros~1\Office\Winword.exe"
However, what if I run this on another machine and the path is not on the D:, but the C:. Instead of changing the path to C:, I'd like the VBS to find winword.exe and launch it.
How do I do this?
Thanks