|
-
May 12th, 2001, 05:51 AM
#1
Thread Starter
New Member
Closing A DOS Window after running a batch file.
Hi there,
I found the tip on Vb-World about using FindWindow to close a DOS window after running an .exe file with Shell().
But this doesn't work if you run a batch (.bat) file. Does anyone have a method I can use in this case?
I'd really appreciate any help you could offer.
Kind regards,
Eight
-
May 12th, 2001, 10:31 PM
#2
Addicted Member
This is kinda hokey, but if you know the caption of the DOS window, you could use App.Activate, and SendKeys to send "Exit" and enter.
-
May 12th, 2001, 11:35 PM
#3
New Member
easyest way
the last line of your batch file must be an "exit"...
that's all....
easy no??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|