Results 1 to 3 of 3

Thread: Question about command line arguements.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Mobile, AL
    Posts
    12

    Question

    I have a program that I call from within my vb program (using the shell command) .. and currently the vb program that is called reads a file to find out if a condition is true or not, is there a way that I can pass a 1 or 2 to the program when it is called from the shell command to eliminate the need for the file?

    Please email me with your answers at : [email protected]

    Thanks

    Jimmy C. Broadhead, Jr.

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Place this in the form load event

    Code:
    Dim strBuffer As String
    
    strBuffer = Command
    
    If Trim$(strBuffer) = -1 Then
      'True so Do Something
    ElseIf Trim$(strBuffer) = 0 Then
      'False so do other
    Else
      'no command line so check file any way.
    End If
    Regards
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Mobile, AL
    Posts
    12

    Unhappy I believe

    I believe that this only works with VB6.. I'm using VB5 Enterprise ..

    Jimmy

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