Mar 25, 2004 #1 valdosta MIS Joined Dec 18, 2002 Messages 50 Location 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 Joined Feb 26, 2003 Messages 1,279 Location 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 Joined Jan 22, 2004 Messages 26 Location 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 Joined Jun 25, 2003 Messages 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 Joined Dec 18, 2002 Messages 50 Location US Thank you all! Yes, Command$ function returns the parameters. Upvote 0 Downvote