Quantcast
Viewing all articles
Browse latest Browse all 11372

Robocopy Wildcard Source Directory

Hi, I am trying to use Robocopy to copy files in certain subdirectories, but not others. So I want everything in the Programs directory for each machine name (M1000, M1001, ...) and under those directories are subdirectories Current and Archive.  I want to only copy what is in Current directories to a different path.  For example, this is what I have:

F:\Programs\M1000\Current

F:\Programs\M1000\Archive

F:\Programs\M1001\Current

F:\Programs\M1001\Archive

And this is what I want to end up with:

C:\Programs\M1000\Current

C:\Programs\M1001\Current

I tried doing something like: "robocopy f:\Programs\*\Current c:\Programs" but got the Invalid Parameter error. Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 11372

Trending Articles



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