Too make things simple I wrote the following code lines:
Code: Select all
p.l = RunProgram("C:\Users\hd\Desktop\DesktopOK_x64.exe", "", "", #PB_Program_Open)
Debug p
If IsProgram(p)
Debug "ok"
Else
Debug "not valid"
EndIf
The debug output is:
-1311699904
not valid
Whatever of the functions
IsProgram(); ProgramID(); ProgramRunning(); WaitProgram(); KillProgram(); ProgramExitCode(); CloseProgram()
I try, I always get the error line: Not a valid program.
What am I doing wrong?