Cant see the command line with WinExec

Hendrik R.
Bad Sassendorf,

Sep 5, 2022
26 Posts

0  |  0  

Re: Cant see the command line with WinExec

Hello together,
I have a problem with the WinExec function. For some reason, I get the return value 2. According to the help, this means that the file is not found. Even with simple commands like:
WinExec("pause",aformShowNormal,,)
I get the return value 2.

On my work laptop the command works without problems, since for the production another laptop is used, I have also installed ATEasy there. Otherwise the program works without problems, only the command line is not displayed, which is essential for the test program.

On both laptops ATEasy 9 Build: 154c is installed.

best regards,
Hendrik

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Sep 6, 2022
368 Posts

1  |  0  

Re: Cant see the command line with WinExec

The Pause command can only run within the Command Prompt application console (CMD.exe). It is not a stand alone executable by itself.

Please looks at the StdioProcess.prj example for how to run commands used inside CMD.exe

Ronnie



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]