Solved

ROBOCOPY, Copy Files only,

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

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
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…
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…

911 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

22 Experts available now in Live!

Get 1:1 Help Now