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

PsTools : How 2 delete MultipleFolders in 1 PsExec command?

$
0
0
Author: guide08
Subject: How 2 delete MultipleFolders in 1 PsExec command?
Posted: 19 July 2014 at 1:43pm

Hi rmetzger
I changed your code in the following way:
psexec \\%PC% cmd /c "for %%U in (1 2 3 4 5 6 7 8 9 T) do (for /d %%D in ("%USERPROFILE%\..\%%U*.*") do (rd /s /q "%%D"))"

Is it true or possible?

Viewing all articles
Browse latest Browse all 10386

Trending Articles



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