如何:访问命令行参数 (Visual Basic)
下面的代码示例循环访问应用程序的命令行参数。
示例
For Each argument As String In My.Application.CommandLineArgs
' Add code here to use the argument.
Next
请参见
任务
如何:为 Windows 窗体应用程序启用批处理模式 (Visual Basic)
下面的代码示例循环访问应用程序的命令行参数。
For Each argument As String In My.Application.CommandLineArgs
' Add code here to use the argument.
Next
如何:为 Windows 窗体应用程序启用批处理模式 (Visual Basic)