Automatically Clear Pause after EXE runs
Keywords: pipe output answer file
Question:
I've got some EXEs that I run, that require parameters. I pass the parameters as follows:RunWait("settcpip.exe", "-I ip 230.230.230.230")However, after the program runs, it gives me one of these "Please hit any Key to continue".Is there anything I can do, in the above command, to automatically have this executed. I tried the following:
RunWait("settcpip.exe", "-I ip 230.230.230.230 << y.bat")With y.bat being just a text file with a Y in it. It basically ignored this. I am running this on a NT 4.0 workstation.Answer:
- Run the settcpip manually from the dos/console prompt. You would still get the "hit any key to continue" message. If not then one of your special BAT files that run when you start a DOS window has a pause in it. Get rid of it.
- Is it not really a PAUSE message, but the fact that you have to manually close the DOS window after the program runs. Set properties for the DOS window to "Close on Exit".
- If it's really the program that puts up the message... try one of the following...
RunWait("cmd.exe","/c settcpip.exe -I ip 230.230.230.230 <or Run("settcpip.exe", "-I ip 230.230.230.230") TimeDelay(4) SendKey("~")
Article ID: W13132Filename: Automatically Clear Pause after EXE Launches.txt