2014-01-08 2 views
0

한 명 이상이 한 명 이상의 PC에 로그인했는지 여부를 알려주는 프로그램입니다.PSTools 및 VB.net : 시스템에서 지정된 파일을 찾을 수 없습니다.

Im PStool의 PSloggedon cmd를 사용합니다.

가 이

개인 서브를 Button1_Click (은 System.Object으로 보낸 사람, 경우 System.EventArgs으로 e)는

Dim Proc As New System.Diagnostics.Process 
    Proc.StartInfo = New ProcessStartInfo("psLoggedon") 
    'right now the textbox will hold a PC ID from a list of PC's in a database. 
    Proc.StartInfo.Arguments = "-l \\" & TextBox1.Text & "" 
    Proc.StartInfo.RedirectStandardOutput = True 
    Proc.StartInfo.UseShellExecute = False 
    Proc.StartInfo.CreateNoWindow = True 
    Proc.Start() 



    MsgBox(Proc.StandardOutput.ReadToEnd) 



    Proc.Close() 



End Sub 

Button1.Click

를 처리
하지만 내가 여기

코드 임 실험입니다 이 오류가 발생했습니다 :

Win32Exception 처리되지 않았습니다 : 지정한 파일을 찾을 수 없습니다


C : \ WINDOWS \ system32를

및 응용 프로그램 파일이 복사 된 그들이 있었다 확신했다 16,

나는 여기에 확인.

이 문제를 해결하기 위해 내가 도와 줄 수있는 사람을 도와 줄 수 있습니까?

p.s. 임 사용하여 윈도우 7

답변

0

사용

string filePath = Environment.GetFolderPath(Environment.SpecialFolder.Windows) + "\\sysnative"; 

32 bit system command

+0

어떻게 내가이 문을 사용해야합니까? –

+0

전에 Proc.StartInfo –

+0

실제로 게시 한 기사가 도움이되었습니다. 내가 한 모든 일은 \ windows \ syswow64의 PStools 응용 프로그램 파일을 복사하는 것입니다 감사합니다! –

관련 문제