Hi all,
I need to write a program to execute two xxx.cmd files. Because the last line in both of the command files have a 'pause' command (Please press any key to continue...). My task is run the program to execute them one by one. Because I can't modify the contents in both command files. Therefore I wrote a small program to run a command file.
Let's call the command file to be test.cmd.
My problem is the program seems to be deadlock after reading the first line message "this is
test!". My question is what should I do to skip the 'pause' command so that I can get the "finish!" message without changing the content of the test.cmd file.
Thank you in advance!
The following is the
Java code I used to execute the test.cmd file.