running batch files within an .exe

June 1, 2009 at 08:40:55
Specs: Windows XP

im trying to make a batch file that will excute a series of commands to flash rom's on our company boards. the reason i am doing this is to speed up manufacturing.

i first go to the neccesary path and open an .exe with arguments but this stops the batch file from continuing. i want the .exe to open and the batch file to continue within the .exe.

i tried using call but the batch file stoped once it opened the .exe. i've also tried using dual starts but this opens a seperate command window with the .exe.

any suggestions?

See More: running batch files within an .exe

Report •

June 1, 2009 at 11:03:47
What is the .exe written in ???

its not that I am afraid to die, I just don't want to be there when It happens !

Report •

June 1, 2009 at 11:53:13
i don't know. i can't find a way to figure it out either. but does it matter? the .exe sets up an envirnoment for other commands to work in the command prompt.

Report •

June 1, 2009 at 12:30:20
You can't achieve what you want as multitasking is not supported inside the same console window. You can run multiple scripts by the Start command, but each one runs in a separate console box, otherwise you have to execute sequential processing via Call or issuing the .exe command.

Multitasking is Windows' facility NOT NT console's (cmd.exe) capability. A way to achieve that might be to run your .exe as TSR, but that is higly risky under Windows and more requires to modify the .exe architecture.

Report •

Related Solutions

June 1, 2009 at 14:01:40
There is the /b switch for the start command, it basically does the same thing except the new script doesn't open a new window, instead it outputs to the existing window. It can sometimes cause lines of output join up and ^C is ignored.

Report •

June 2, 2009 at 07:13:11
im just going to open up the .exe and drag my batch file into it. its just another click, still faster than typing it all out.

well thanks guys ill be sure to come back if i have more questions

Report •

Ask Question