Results 1 to 2 of 2

Thread: You are god if you can help me solve this...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99
    Ok, maybe not. So I balantly tricked you into reading this.. sue me.

    How would you launch "C:\blah.exe -blah -setting 2" in vb?
    ___________________________
    Chris

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Its a shame that your skill does not run to aksing questions clearly.

    So what do you need to know. Do you want to know how to retrieve the command line arguments passed to your VB program, or do you want to know how to call a program and pass it some arguments.

    Code:
    'to get command line arguments passed to your app
    Private Sub Form_Load()
        Dim strCommand As String
        
        strCommand = Command
    End Sub
    Code:
    'to call a program from vb with arguments
    Shell "c:\blah.exe arg1 arg3"
    Iain, thats with an i by the way!

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