Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Command Line Arguments

Status
Not open for further replies.

montell

Programmer
Jul 29, 2003
5
GB
I currently want to execute my VB exe by command line via a batch file, in this command i want to pass in a string parameter.

At the moment I cannot have arguments in my sub main() because VB will not compile with them in. How do I pass parameters into my program when calling the executable from the command line?
 
Try the CommandLine Class in thread222-154551

Wil Mead
wmead@optonline.net

 
Go to Project Properties / Make Tab and fill in the Command Line Arguments with which you want to test.
From the MSDN D Docs.
"Command Line Arguments

Allows you to enter the command-line arguments that Visual Basic sends to an application only when you choose Start from the Run menu." Compare Code (Text)
Generate Sort in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top