• Welcome to Valhalla Legends Archive.
 

[VB6] Command Line Arguments?

Started by Joe[x86], September 07, 2005, 04:51 PM

Previous topic - Next topic

Joe[x86]

Yeah. How do you use them? Are they passed to a public variable like Java's String args[]?
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Eric

The program's command line is stored in a system variable which can be retrieved using the Command function.

Joe[x86]

Private Sub Form_Load()
    Dim Args As String: Let Args = Command()
    Call MsgBox("Command line arguments: " & Args)
End Sub


Thanks!
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.