cmd.exe Problem

Stefan W.
33106 Paderborn,

Apr 3, 2024
2 Posts

0  |  0  

Re: cmd.exe Problem

Hey,
I tried to use this function "WinExec("cmd.exe")". It works fine and opends the command interface. But here is the problem.
I tried the command "tftp", but the program said "The command "tftp" is either misspelled or could not be found."

If i use the cmd.exe without ATEasy, it works fine and i can use this command.  Are there any "Environment variables" like in Windows that i have to search in the setting of ATEasy.

Can any body help me with my problem?

Stefan W.
33106 Paderborn,

Apr 4, 2024
2 Posts

0  |  0  

Re: cmd.exe Problem

ok, I find a solution (the problem). If I use ATEasy 2021 (64Bit) it works, if I use ATEasy 2021 (32Bit) it doesn´t work.

DrATEasy (Ron Y.)
Mission Viejo, CA

Apr 4, 2024
358 Posts

0  |  0  

Re: cmd.exe Problem

Please take a look at the following article, it has many cmd execution examples, those example run on 32-bit or 64-bit of ATEasy:

https://www.marvintest.com/KB/Q200173/Running-a-batch-file-or-command-prompt-from-ATEasy

You can use environment variables, for example:

WinExec("cmd.exe /k \"dir %temp%\"", aformShowNormal)


Ron



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]