Hi, I want an open DOS window, which I have called with. Cmd (meine.exe-I),
press the Esc command ... automatically terminate!
how would my my. cmd therefore look?
Sorry for my bad english!
press Esc ...
Moderator: DosItHelp
Re: press Esc ...
I don't quite understand: do you want to open a cmd window, and then make it close when escape is pressed?
What is the purpose? It will help us understand what you are trying to do.
What is the purpose? It will help us understand what you are trying to do.
Re: press Esc ...
I try to run an application with CMD automatically!
For Close the open dos window ESC are pressed!
my cmd:
@echo Patch
@"Patch.exe" -I
@echo Done!

how the command is to Close?
@echo Patch
@"Patch.exe" -I
@press Esc????
@echo Done!
For Close the open dos window ESC are pressed!
my cmd:
@echo Patch
@"Patch.exe" -I
@echo Done!

how the command is to Close?
@echo Patch
@"Patch.exe" -I
@press Esc????
@echo Done!
Re: press Esc ...
If patch.exe is waiting for an escape keystroke, then you could rig something like VBS and Sendkeys, but Autoit might be better than batch.
Re: press Esc ...
AutoIT Script:
Run("Patch.exe -I")
Sleep (1000)
Send ("{Esc}")
Exit
works!However, you can write it better?
Run("Patch.exe -I")
Sleep (1000)
Send ("{Esc}")
Exit
works!However, you can write it better?