Program with Command Line inputs
Make your application run from command lines or the run dialog with arguements. ie: myapp.exe -m
No need to vote for this code because it is really basic.
Inputs
You have to put this code in a module. Set the startup for your app to Sub Main(). Add a label to form1 (Label1)
Rate Program with Command Line inputs
(2(2 Vote))
Sub Main()
If Command = "" Then
Form1.Label1.Caption = "No arguement."
Form1.Show
ElseIf Command = "-m" Then
Form1.Show
Form1.WindowState = 1
Form1.Label1.Caption = "Arguement: " & Command
Else
Form1.Label1.Caption = "Arguement: " & Command
Form1.Show
End If
End Sub
Program with Command Line inputs Comments
No comments yet — be the first to post one!
Post a Comment