kiwipenguin
09-23-2002, 08:42 PM
Can anyone tell me how to do the following? Open a local application, wait for it to fully open and then set it as the active window. I have the following code, but it doesn't seem to find the exe file.
Set WshShell = WScript.CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("C:\Program Files\FirstClass\Fcc32.exe", 1, True)
WshShell.AppActivate "FirstClass Login"
The error I get is "file not found" on the ReturnCode line. You'll have to excuse my ignorance in VB Scripting too.
Cheers
Set WshShell = WScript.CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("C:\Program Files\FirstClass\Fcc32.exe", 1, True)
WshShell.AppActivate "FirstClass Login"
The error I get is "file not found" on the ReturnCode line. You'll have to excuse my ignorance in VB Scripting too.
Cheers