Can we use winexec to open .bat file?

Binh P.
Tucson, AZ

Jul 24, 2014
2 Posts

0  |  0  

Re: Can we use winexec to open .bat file?

I tried to open a .bat file with winexec but all I get is a flash on a screen.
When manually double click on the .bat file, it opens fine.
I'm using ATEasy 8.0 148b. Thanks for the help.

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

Jul 24, 2014
358 Posts

1  |  0  

Re: Can we use winexec to open .bat file?

WinExec("cmd.exe /C c:\\a.bat")

Use the /K instead of /C to leave the window open aftter executing it, so you can see the outcome.

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]