Terminating a DOS Window Programmatically

C

Chaplain Doug

Access 2003. As part of a module I use the Shell command to run Kermit (and
old asynchronous communication/file transfer program). This Shell command
brings up a "DOS" window in which Kermit runs. How can I programmatically
terminate (close) this DOS window from VBA. I know when I am ready to
terminate the window as I monitor the files Kermit is creating. I just need
to be able to get rid of this window when it is done. Thanks for the help.
God bless.
 
J

jmonty

Maybe try changing the Shell command to something like:
command.com /C batchfile.bat
The /C switch I believe will close the window on completion.


jmonty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top