Link to home
Start Free TrialLog in
Avatar of mvtop
mvtop

asked on

ROBOCOPY, Copy Files only,

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

ASKER CERTIFIED SOLUTION
Avatar of wmeerza
wmeerza
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mvtop
mvtop

ASKER

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.

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)
Avatar of mvtop

ASKER

thanks. i just got xxcopy and it's works for what i need.  

:)
no problem.