Solved

ROBOCOPY, Copy Files only,

Posted on 2007-12-06
5
5,451 Views
Last Modified: 2012-08-14
using robocopy
I'm trying to copy only files such as *.jpg from a directory that contains these files and there are other directories within directories that contain files that i want to get to.
I don't want to create any directories at the destination. I just want files.
I want go down through the directories and just grab specific files.



Open in new window

0
Comment
Question by:mvtop
[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
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
wmeerza earned 500 total points
ID: 20425231
I don't think robocopy can group all files into 1 directory, it seems to only be able to recreate the tree.
Have you tried using xxcopy which can do that. Freeware for personal use but for commercial use it can be purchased cheap.
0
 

Author Comment

by:mvtop
ID: 20425337
it won't go done thru the directories and just grab the files and not the directories? I think that's what your saying.
I'll look at the xxcopy.  i thought robocopy replaced that.

0
 
LVL 10

Expert Comment

by:wmeerza
ID: 20425364
Thats right robocopy will create the folders too. xxcopy is a third party software not part of windows resource kit. Here is an example where I had 3 files in subdirectories and used xxcopy to move them to 1 folder.
C:\Temp\test>xxcopy c:\temp\test\*.bmp c:\temp\test\output /sg

XXCOPY  == Freeware ==    Ver 2.95.3  (c)1995-2007 Pixelab, Inc.

Detected a cyclic copy (the source includes the destination).
-------------------------------------------------------------------------------
C:\temp\test\input\b1.bmp                                                     0
C:\temp\test\input\input 1\b2.bmp                                             0
C:\temp\test\input\input 1\input 2\input 3\input 4\b4.bmp                     0
C:\temp\test\output                                                Dir Excluded
-------------------------------------------------------------------------------
 Directories processed = 6
 Total data in bytes   = 0
 Elapsed time in sec.  = g
 Action speed (MB/min) = g
 Files copied          = 3
 Exit code             = 0 (No error, Successful operation)
0
 

Author Comment

by:mvtop
ID: 20425446
thanks. i just got xxcopy and it's works for what i need.  

:)
0
 
LVL 10

Expert Comment

by:wmeerza
ID: 20425455
no problem.
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

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