PsExec run remote batch file in visible mode
问题 I am trying to execute following command psexec \\x.x.x.x -d -c -f cmd.exe /c d:\test\hello.bat It runs fine and gives output cmd.exe started on x.x.x.x with process ID 106084. But when I login on x.x.x.x I can find the process ID but no visible batch file is launched. It runs in background. Batch file echo "Hello" pause Please tell me how to see the command window launched on x.x.x.x Thanks in advance 回答1: Alex K. is correct. Specifically, remove the "-d", which tells PsExec "Don't wait for