Forum Discussion
Dmitry_Nikolaev
Staff
14 years agoHi Christophe,
I suspect that you get this message as the path to your executable file is specified incorrectly. Please pay attention to that all of the files specified to be opened in the command line must be referenced using the full path to the file. If the file path contains spaces, it should be enclosed in quotes (""). Also please note that you can use the GetEnvironmentVariable method to get the ProgramFiles environment variable.
Look at the example:
Sub OpenTestApplication
Dim WshShell
Set WshShell = Sys.OleObject("WScript.Shell")
command = """" & aqEnvironment.GetEnvironmentVariable("ProgramFiles") & "\MyApp\app.exe"""
Log.Message command
Call WshShell.Run(command)
End Sub
If this does not help, please post here the problematic code.