Results 1 to 3 of 3

Thread: Closing A DOS Window after running a batch file.

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    2

    Question 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

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    The Lone Star State
    Posts
    183
    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.
    !

  3. #3
    New Member
    Join Date
    Jun 2000
    Location
    Guadalajara, Jalisco Mexico
    Posts
    9

    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
  •  



Click Here to Expand Forum to Full Width