Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

How to copy loads of files into one directory

Thread Tools
 
Search this Thread
 
Old 05 November 2007, 04:45 PM
  #1  
Dracoro
Scooby Regular
Thread Starter
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default How to copy loads of files into one directory

I have 20 folders, each have a \bin\debug\ folder and within these folders are some DLL (and others) files I have created.

I want to copy all the files in each of these folders into ONE folder (overwriting those with the same name).

How do I do this?

e.g. files to copy:
D:\Code\ABC\bin\debug\something.dll
D:\Code\ABC\bin\debug\something_else.dll
D:\Code\XYZ\bin\debug\something.dll
D:\Code\XYZ\bin\debug\something_else.dll
D:\Code\XYZ\bin\debug\something_more.dll

should end up like this:
D:\Test\something.dll
D:\Test\something_else.dll
D:\Test\something_more.dll
Old 05 November 2007, 07:47 PM
  #2  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Use windows Search, (Windows key + F) select your drive D:, search for *.dll and this will list them all on the right hand side, then just quickly select all the ones you want and right click copy, then paste in explorer in the new folder.
Old 05 November 2007, 07:55 PM
  #3  
gazza-uk
Scooby Regular
 
gazza-uk's Avatar
 
Join Date: Jan 2006
Location: Yorkshire
Posts: 1,348
Likes: 0
Received 0 Likes on 0 Posts
Default

drop to a command prompt

type copy d:\code\???\bin\debug\*.* d:\test /y

space between *.* AND d:\test

Last edited by gazza-uk; 05 November 2007 at 07:58 PM.
Old 05 November 2007, 08:08 PM
  #4  
gazza-uk
Scooby Regular
 
gazza-uk's Avatar
 
Join Date: Jan 2006
Location: Yorkshire
Posts: 1,348
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by gazza-uk
drop to a command prompt

type copy d:\code\???\bin\debug\*.* d:\test /y

space between *.* AND d:\test

forget this ? does not work in copy mode
Old 05 November 2007, 08:56 PM
  #5  
Dracoro
Scooby Regular
Thread Starter
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default

I know, it was the 1st thing I tries before posting this thread!

New windows search used and it does allow the * in the path (where the ???s are above) but not the dos copy.

Would prefer a better way though.
Old 06 November 2007, 01:20 PM
  #6  
DemonDave
Scooby Regular
iTrader: (13)
 
DemonDave's Avatar
 
Join Date: Jan 2001
Location: Midlands - between notts and derby !
Posts: 4,997
Likes: 0
Received 0 Likes on 0 Posts
Default

windows scripting

eg

Iterate through Nested Directories Using Windows Scripting Host
Old 06 November 2007, 03:47 PM
  #7  
BlkKnight
Scooby Regular
 
BlkKnight's Avatar
 
Join Date: Feb 2004
Location: High Wycombe
Posts: 3,763
Likes: 0
Received 0 Likes on 0 Posts
Default

D:\Code\ABC\bin\debug\something.dll
D:\Code\ABC\bin\debug\something_else.dll
D:\Code\XYZ\bin\debug\something.dll
D:\Code\XYZ\bin\debug\something_else.dll
D:\Code\XYZ\bin\debug\something_more.dll

should end up like this:
D:\Test\something.dll
D:\Test\something_else.dll
D:\Test\something_more.dll

Aren't your second set of copys (XYZ) going to overwrite the first set of files (if they are the same name)?
Old 06 November 2007, 04:42 PM
  #8  
Dracoro
Scooby Regular
Thread Starter
 
Dracoro's Avatar
 
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes on 0 Posts
Default

Yup, that is OK as they'll be the same version. If nothing else, I'd use latest change date but they are all compiled at the same time from the same code.

Using the new Windows desktop search, I've managed to sort of get what I want then copy all over. Must say, the new XP search is a mass improvement over the old crappy thing.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
PetrolHeadKid
Driving Dynamics
10
05 October 2015 05:19 PM
IAN WR1
ScoobyNet General
8
28 September 2015 08:14 PM
sivo
ScoobyNet General
12
26 September 2015 12:34 PM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Littleted
Computer & Technology Related
0
25 September 2015 08:44 AM



Quick Reply: How to copy loads of files into one directory



All times are GMT +1. The time now is 09:41 AM.