Terminating a DOS Window Programmatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
Back
Top