Mar 25, 2004 #1 valdosta MIS Dec 18, 2002 50 US Hi, How can I read a command-line argument into VB6 program? i.e. c:\>myprogram.exe para1 Thanks in advance!
Hi, How can I read a command-line argument into VB6 program? i.e. c:\>myprogram.exe para1 Thanks in advance!
Mar 25, 2004 1 #2 Hypetia Programmer Feb 26, 2003 1,279 US Check out the [tt]Command$[/tt] function in VB help which returns the command line string. Upvote 0 Downvote
Mar 25, 2004 1 #3 NetGiant Programmer Jan 22, 2004 26 US The "Command" function returns the argument portion of the command-line used to launch the app. (paraphrased from the VB help file) --------- You can also set the command line arguments on the "Make" tab of the project properties dialog so you can test your app while coding. Net_Giant What fun is a technology if you can't crash the OS? Upvote 0 Downvote
The "Command" function returns the argument portion of the command-line used to launch the app. (paraphrased from the VB help file) --------- You can also set the command line arguments on the "Make" tab of the project properties dialog so you can test your app while coding. Net_Giant What fun is a technology if you can't crash the OS?
Mar 25, 2004 1 #4 PatrickIRL Programmer Jun 25, 2003 383 You can use the Command() function. In your example c:\>myprogram.exe para1, the Command function will hold the value "para1" Regards, Patrick Upvote 0 Downvote
You can use the Command() function. In your example c:\>myprogram.exe para1, the Command function will hold the value "para1" Regards, Patrick
Mar 25, 2004 Thread starter #5 valdosta MIS Dec 18, 2002 50 US Thank you all! Yes, Command$ function returns the parameters. Upvote 0 Downvote