Results 1 to 7 of 7

Thread: batch file question

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    batch file question

    One of our IT guys has a batch file that launches a program... but the DOS window stays up the whole time.. and when you exit the program it launches it goes back to the batch file and closes.

    he wants it to launch the app.. but close the batch file as soon as it launches.. not hang around until you close the app... any ideas?

  2. #2
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Okinawa, Japan
    Posts
    271
    try using
    start
    like start MyWinProgram.exe
    I think that should work.

  3. #3
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    Perhaps this will do:
    Shell "c:\test.bat", vbHide

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    Originally posted by packetVB
    try using
    start
    like start MyWinProgram.exe
    I think that should work.
    yeah just found this also on computerhope.com.. this works... THANKS

  5. #5
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Okinawa, Japan
    Posts
    271
    np

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    Originally posted by IROY55
    Perhaps this will do:
    Shell "c:\test.bat", vbHide
    well they were executing an app from a batch file directly off the drive.. so they weren't calling it from a VB app

  7. #7
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    Oh, I see.

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