I am experiencing PsExec hang while being executed from a very simple c# or c++ gui program compiled as \"windows application\" (not as \"console application\"). Under sect
I have a simple solution for this,
C# run the process like:
Process.Start("start run.bat xx.txt"); //call it async
//and then we make some code juse wait xx.txt appear and finish written .
run.bat
is :
psexec.bat > %1 //redirect to a text file
exit
psexec.bat
is:
psexec.exe ..........................
exit