How to copy loads of files into one directory
#1
Scooby Regular
Thread Starter
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#2
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.
#3
Scooby Regular
Join Date: Jan 2006
Location: Yorkshire
Posts: 1,348
Likes: 0
Received 0 Likes
on
0 Posts
drop to a command prompt
type copy d:\code\???\bin\debug\*.* d:\test /y
space between *.* AND d:\test
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.
#4
Scooby Regular
Join Date: Jan 2006
Location: Yorkshire
Posts: 1,348
Likes: 0
Received 0 Likes
on
0 Posts
#5
Scooby Regular
Thread Starter
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes
on
0 Posts
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.
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.
#7
Scooby Regular
Join Date: Feb 2004
Location: High Wycombe
Posts: 3,763
Likes: 0
Received 0 Likes
on
0 Posts
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)?
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)?
Trending Topics
#8
Scooby Regular
Thread Starter
Join Date: Sep 2001
Location: A powerslide near you
Posts: 10,261
Likes: 0
Received 0 Likes
on
0 Posts
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.
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.
Thread
Thread Starter
Forum
Replies
Last Post