Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : Psexec crashing in batch file - fine otherwise

$
0
0
Author: Eambo
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!

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>