|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Command Line ArgumentsHi,
Please guide me how to set command line argument and how to retrive command line argument. Senario: vb.net application should be able to execute from command prompt by passing login and password and should be able to execute process form (with his parameter) User should not be able to see GUI Milan Visual Basic includes a "Command" function that provides all command-line
arguments as an entire string. In VB2005, you can also use the My.Application.CommandLineArgs property, which provides a collection of the individual arguments. When running your program within Visual Studio, you can set temporary command-line arguments through the Project Properties form. Choose the Debug tab, and then fill in the "Command line arguments" field as needed. ----- Tim Patrick - www.timaki.com Start-to-Finish Visual Basic 2005 Show quoteHide quote > Hi, > > Please guide me how to set command line argument and how to retrive > command line argument. > > Senario: vb.net application should be able to execute from command > prompt by passing login and password and should be able to execute > process form (with his parameter) > User should not be able to see GUI > Milan > "Milan" <milanwa***@googlemail.com> schrieb: Select 'Sub Main' in the project's properties as startup object and add this > Please guide me how to set command line argument and > how to retrive command line argument. > > Senario: vb.net application should be able to execute from command > prompt by passing login and password and should be able to execute > process form (with his parameter) > User should not be able to see GUI code to your project: \\\ Public Module Program Public Sub Main(ByVal Args() As String) If Args.Length > 0 Then If ... Then Application.Run(New MainForm()) Else ... End If Else ... End If End Sub End Module /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
App.Config Recovers automatically
PrintPreview Control Function with Two Values upgrading to vb.net Aaargh!! Renaming file issues SQL server and Access SELECT in one Query Serialize object to XML with nested structure Context Menu Not Closing Clear spaces between tex Add items with value and text to a combobox |
|||||||||||||||||||||||