Author: Eambo
Subject: Psexec crashing in batch file - fine otherwise
Posted: 19 February 2014 at 12:09pm
Hi there!
Subject: Psexec crashing in batch file - fine otherwise
Posted: 19 February 2014 at 12:09pm
Hi there!
Hoping someone can help with this one - I'm running psexec as part of a larger bat file, and one step is to run psexec:
%0\..\"psexec.exe" -i -s -d \\<MACHINENAME>"notepad.exe"
This works perfectly fine if I copy-paste the same command into a command prompt window. However running it from the batch results in it "not responding" and crashing out, strangely.
Does anyone have any idea why this would happen, or how to work around it? It happens no matter what way I run it from batch it seems!