2009-04-25 6 views
0

다음 runapplication 작동하지 않습니다명령을 실행하는 vb.net 문제

 Private Sub RunApplication(ByVal ProgName As String) 
     // String of text as a command to execute with the command line interpreter 
     Dim strApplication As String = "cmd.exe/c" 
     Dim ProcessID As Integer 
     strApplication = strApplication & " " & ProgName & " > C:\tool.tmp" 

     // Execute the command but hide it from the user 
     Shell(strApplication, AppWinStyle.Hide, True) 

     // View the Output in notepad.exe 
     ProcessID = Shell("notepad.exe C:\tool.tmp", AppWinStyle.NormalFocus) 
     AppActivate(ProcessID) 

모든 제안을 감사하게 생각 될 것입니다

답변

2

는 "cmd.exe를/c"를 "cmd.exe를해야 공간을 넣어 평가/c "

+0

고맙습니다. – Mark

관련 문제