Results 1 to 4 of 4

Thread: Calling Dos Programs

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    High Wycombe, United Kingdom
    Posts
    13
    Does any one knows how to use SHELL or any other command in VB to call & terminate dos programs?
    I need to run a dos exe, with this command and when user exist this prog. (doc) it should return back to main VB program.
    Any help on this will greatly appreciate.
    Thanks

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    heh you said it yourself the command is SHELL
    Shell "file"
    And if I were you I would just make it so that when the VB prog regains focus it assumes its done, but thats not that good, maybe someone else can help there.

    HOORAY! THIS IS MY FIRST QUESTION I HAVE EVER ANSWERED! or at least partly...
    Vuen

  3. #3
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Hi,
    One of the problems I had with Shelling Dos programs is that the Dos program wasn't finished before VB continued. A tip on this site solved it for me.
    See:
    http://www.vb-world.net/tips/tip5.html

    Al.

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    High Wycombe, United Kingdom
    Posts
    13
    Thanks, I will try it.
    Niranjan

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