Computer Hope
Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: x_milind on July 11, 2012, 04:46:08 AM
-
Hello,
I'm writing a batch script on windows, where i'm performing the following:
call abc.exe
call def.exe
After it runs the abc.exe, i get a message "Press any key to continue", and only after the key is pressed, it executes the def.exe.
How do i get rid of the "Press any key to continue" after abc.exe?
Regards,
Milind
-
The "Press any key to continue" message is generated by a pause statement in batch. You don't have one, so I'm thinking the abc program is putting out the message.
You might try piping a key into the abc program:
echo. | abc
def
No guarantees, but stranger things have worked!
FWIW: call is used to tranfer control to other batch files with the expectation of returning to the original batch file (the caller). It's not necessary when running exe files.
8)