Results 1 to 3 of 3

Thread: command line arguments

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    UK, Bedfordshire
    Posts
    49

    Question

    hi ppl (again ),
    could some one tell me how to get command line arguments like:

    c:\myprog.exe /TheStringIWant


    thanx
    Thanx, for your reply(s)

    Zhang Tian Hao
    Visual Studio Enterprise 6.0 SP 4
    [email protected]

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    The command line sent to your program can be retrieved using the Command$ variable eg;

    Code:
    If Command$="/TheStringIWant" Then
      Msgbox "I've Got the String!"
    End If
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    UK, Bedfordshire
    Posts
    49

    Talking

    Thanx...
    Thanx, for your reply(s)

    Zhang Tian Hao
    Visual Studio Enterprise 6.0 SP 4
    [email protected]

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