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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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)
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)
ASKER
thanks. i just got xxcopy and it's works for what i need.
:)
:)
no problem.
ASKER
I'll look at the xxcopy. i thought robocopy replaced that.