Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Combining These Different Psxec Commands in One Line

$
0
0

I use a bat script and it has some PsExec commands. We want to combine these two commands in one psexec line. We tried something [ ^&,&&, &, (cmd1 & cmd2) etc.. but it didn't work.

First Command:

psexec \\HostName cmd /c "for /d %%a in ("D:\folder") do rd /s /q "%%a""

Second Command:

psexec \\HostName -c TEST7.bat



\_(ツ)_/ twitter.com/serdaruzun


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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