processPath在这个例子中是否可以从 返回参数?
这可能更有意义,抱歉。
Dim processName As String
Dim processPath As String
If processName = "cmd" Then
Dim arguments As String() = Environment.GetCommandLineArgs()
Console.WriteLine("GetCommandLineArgs: {0}", String.Join(", ", arguments))
End If
Run Code Online (Sandbox Code Playgroud)