UniqueTII
What?
- Local time
- Yesterday, 19:19
- Joined
- Apr 4, 2002
- Messages
- 96
I have searched quite a bit and can't seem to find an answer for my problem.
I have a button that runs a .bat file and at the end of the .bat file, I need to press a key to close the DOS window. I was hoping I could create a timer for 1 or 2 seconds that will close the DOS window (using SendKeys?) and return focus to my form with the button on it. How could I set up a timer on the OnClick function of the button to do this?
I have a button that runs a .bat file and at the end of the .bat file, I need to press a key to close the DOS window. I was hoping I could create a timer for 1 or 2 seconds that will close the DOS window (using SendKeys?) and return focus to my form with the button on it. How could I set up a timer on the OnClick function of the button to do this?