Quantcast
Channel: User Brian - Server Fault
Viewing all articles
Browse latest Browse all 41

Answer by Brian for Using Robocopy to search and copy directories using pattern matching

$
0
0

An example of a dir used in a FOR loop with how to change the drive letter when outputting it:

FOR /F "usebackq delims==" %i IN (`dir /s /a:d /b c:\workspace\workInProgress*`) DO @echo "c:%~pi""d:%~pi"

Viewing all articles
Browse latest Browse all 41

Trending Articles



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