Valhalla Legends Forums Archive | Visual Basic Programming | [VB6] Command Line Arguments?

AuthorMessageTime
JoeTheOdd
Yeah. How do you use them? Are they passed to a public variable like Java's String args[]?
September 7, 2005, 9:51 PM
LoRd
The program's command line is stored in a system variable which can be retrieved using the Command function.
September 7, 2005, 10:11 PM
JoeTheOdd
[pre]Private Sub Form_Load()
    Dim Args As String: Let Args = Command()
    Call MsgBox("Command line arguments: " & Args)
End Sub[/pre]

Thanks!
September 7, 2005, 10:19 PM

Search