چطور می شه برای برنامه ها از command line استفاده کنیم
به عنوان مثال:
myfile.exe /s
Printable View
چطور می شه برای برنامه ها از command line استفاده کنیم
به عنوان مثال:
myfile.exe /s
خودم پیداش کردم
اینم سورسش:
کد:Dim inputArgument As String = "/input="
Dim inputName As String = ""
For Each s As String In My.Application.CommandLineArgs
If s.ToLower.StartsWith(inputArgument) Then
inputName = s.Remove(0, inputArgument.Length)
End If
Next
If inputName = "" Then
MsgBox("No input name")
Else
MsgBox("Input name: " & inputName)
End If