Solved

ROBOCOPY, Copy Files only,

Posted on 2007-12-06
5
5,438 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
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
wmeerza earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks. i just got xxcopy and it's works for what i need.  

:)
0
 
LVL 10

Expert Comment

by:wmeerza
Comment Utility
no problem.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now