Solved

ROBOCOPY, Copy Files only,

Posted on 2007-12-06
5
5,446 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
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

Industry Leaders: 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

An article on effective troubleshooting
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

685 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