Results 1 to 5 of 5

Thread: Running DOS app. in background

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Posts
    7

    Post

    Does anyone know a good way to run a windowless DOS app invisibly in the background? Along with finding out when it's done?

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111

    Post

    If you have a batch file which calls the program, then you can.

    Kill "c:\finished.txt" 'make sure there's
    'no file indcator left
    call shell("mybatch.bat",vbhide)
    do while dir("c:\finished.txt")=""
    loop

    The batch file should have a final line which
    reads something like

    dir >>c:\finished.txt

    To create the finished.txt file

    Cheers

    Chris

  3. #3
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Well, you can use ShellExecute with ShellAndWait APIs.

  4. #4
    Hyperactive Member ravi15481's Avatar
    Join Date
    Aug 2002
    Location
    INDIA
    Posts
    421
    sorry!

  5. #5
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972
    or u could do a shellandwait function...give a search or search a thread i posted (replyed) with dos output on text box.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

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