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

Remove directories with wildcards in .bat file

$
0
0

I know there are several similar topics on this, but none that exactly fit my situation. I need to delete a directory and all subfolders here: c:\Users\%%\AppData\Local\virt-viewer

The %% being the wildcard user.

I have tried FOR /D %X IN ("c:\Users\*\AppData\Local\virt-viewer") DO RD /S /Q "%X" in a command prompt (doubling the % in a batch), but nothing has worked yet.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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