0
이것은 openfiles.exe를 실행하고 출력을 반환합니다. openfiles.exe를 명령 줄에서 실행하면 예상대로 작동합니다. 내가 여기 실행 오류가 없다하지만 난 메시지 박스Openfiles.exe에서 Output을 읽으려고하는데
Dim NewProcess As New Process()
With NewProcess.StartInfo
.FileName = "openfiles.exe"
.Arguments = "/query /s FakeServer/fo csv /V /U FakeDomain\Fakeuser/P pword"
.RedirectStandardOutput = True
.RedirectStandardError = True
.RedirectStandardInput = True
.UseShellExecute = False
.WindowStyle = ProcessWindowStyle.Normal
.CreateNoWindow = False
End With
NewProcess.Start()
System.Threading.Thread.Sleep(5000)
MsgBox(NewProcess.StandardOutput.ReadToEnd)
일부 응용 프로그램 (예 : FFmpeg)은 출력 스트림이 아닌 오류 스트림에 기록합니다. 'MsgBox (NewProcess.StandardError.ReadToEnd())'도 시도해 봤나? –