vb.net
问题如下:
我在 Test1中 我用了
Dim sInfo As New ProcessStartInfo
sInfo.FileName = "F:\TestProject\" & "Test2.exe"
Process.Start(sInfo)
这里 是可以 启动 Test2的
问题是,我需要在Test1中传一个参数 到 Test2里
使得Test2可以用这个参数
还有 就是
Public Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByRef lpProcessAttributes As String, ByRef lpThreadAttributes As String, ByVal bInheritHandles As Integer, ByVal dwCreationFlags As Integer, ByRef lpEnvironment As String, ByVal lpCurrentDriectory As String, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As Integer
可以在 vb中 使用 ,
在vb.net里面 虽然不报错,但用他启动其他进程 启动不了,那么 在vb.net 应该怎么修改呢?
------解决方案--------------------
MsgBox Command