Results 1 to 2 of 2

Thread: Using command line arguments

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 1999
    Location
    Harrington, DE USA
    Posts
    21

    Post

    I'm trying to learn how to use the command() function, can anyone please help.

    TIA,
    XinMan

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post


    something like this:
    Code:
    Private Sub Form_Load()
    
    Dim strCommandLine As String
    
    strCommandLine = Command()
    
    if strCommandLine = .......
     'do something
    end if
    
    end sub
    if you are hoping to pass several arguments you will need to parse strCommandLine for and split it up.

    ------------------
    Mark Sreeves
    Analyst Programmer

    Mark.Sreeves@Softlab.co.uk
    A BMW Group Company



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