Solved

robocopy switches

Posted on 2014-01-23
2
267 Views
Last Modified: 2014-01-24
What switches would I use if I wanted to copy everything but want to skip any file that ends in "f.jpg" or "o.jpg"?
0
Comment
Question by:hrolsons
2 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 39805219
Robocopy source destination /XF  *f.jpg
0
 
LVL 52

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
ID: 39805270
Where do things stand on your other similar question?
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_28345765.html

Just as I explained /xc /xn /xo in that question, there's also /xf:

/XF file [file]... :: eXclude Files matching given names/paths/wildcards

The /xf allows multiple file specs, so the answer is:

robocopy c:\sourcefolder e:\destfolder /xf *f.jpg *o.jpg

Of course, the source and destination are whatever folders you want them to be. And as I pointed out yesterday, /s includes non-empty subfolders and /e includes all subfolders, including empty ones. Btw, in yesterday's question, I attached the full Robocopy syntax for you in a file called <robocopy-help.txt>. Regards, Joe

P.S. The first answer above was almost right but it is missing the *o.jpg file spec.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question