Solved

robocopy switches

Posted on 2014-01-23
2
271 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Expert Comment

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

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

691 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