.net - psexec and process.start, waitforexit -
.net - psexec and process.start, waitforexit - task : re-create file remote pc remote pc using admin account code : psi.filename = "cmd.exe" psi.arguments = parastr psi.username = struserid psi.password = converttosecurestring(txtadminpassword.text) psi.domain = strdomain psi.windowstyle = processwindowstyle.normal psi.useshellexecute = false dim proc new process proc.startinfo = psi proc.start() parastr= /k psexec.exe -h /user adminuser \sourcemachine cmd /c re-create \sourcepc\file1 \destpc\folder so when executing command, prompts admin password , 1 time verified , copies file , end this working fine i want check when actual re-create work done (the files size unknown , sometime takes more 3/4 hrs) i maintain cmd window open see if process over, homecoming message task completed or failed in command prompt how can check through vb , when process on ? on console application can set process exit co...