Results 1 to 3 of 3

Thread: start an application from within vb

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Land of Entrapment
    Posts
    31

    Talking

    Hi,
    I'm wondering if there's a way to start another windows application from within vb6? I have the MSDN docs and there's a command "RUN | !" but the cd's don't specify which programming s/w that command runs with. Vb gives me an error when I put it in my code. Any suggestions??
    Thanks mucho.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Hello bulletbob welcomne to our happy little forum!

    the command you want is Shell()


    eg:
    Code:
    Private Sub Command1_Click()
     Shell "notepad.exe"
    End Sub
    Mark
    -------------------

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Land of Entrapment
    Posts
    31
    Damn I just posted that like 5 minutes ago!!

    Thanks for the welcome also!

    Wow! It even worked! This is better than a free double latte!

    [Edited by bulletbob on 07-18-2000 at 04:41 AM]

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