Link to home
Create AccountLog in
Avatar of CHI-LTD
CHI-LTDFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Copying of files and directories

hi

im looking at copying many files and directories to another location.

whats the best tool to use i.e. robocopy?
can a saved .txt file be used as a template to speed up things?

thanks
Avatar of x-men
x-men
Flag of Portugal image

use robocopy
Avatar of CHI-LTD

ASKER

thanks, i need to be albe to filter the contents of directories and files on this mapped drive.  is this possible, if so how?
SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
All good suggestions.  Just to add that as well as RichCopy having a GUI interface it is also multi-threaded so can copy multiple files 1,2,3 or 4 at the same time.  RichCopy can also be used from the command line for scripting etc.
--IJ
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of CHI-LTD

ASKER

i need a way to import the list of files/paths if possible...
Avatar of Bill Prew
Bill Prew

It would be useful at this point (at least to me) if you could describe what your needs are more fully.  I hear that there may be a list of source folders and or files, will they go to the same target, or different targets.  Will any other selection criteria be used like name filters, or size, or date, etc.  Are the files to keep their same names and directory structure?  Are they to be moved, or just copied?  Should they be overwritten if they already exist.  These are just a few things that come to mind, but if you can thoroughly explain what you need we can help guide you toward a tool and solution better.

~bp
This will copy your entire music folder, including sub-folders/ files to drive f:\music

xcopy "%userprofile%\music" "f:\music" /i /s /y
Avatar of CHI-LTD

ASKER

used excel to create list of directories (files to me copied manually), saved it as txt, then cmd file, then tested.  using xcopy.
good choice.

Well done and thanks

R
Did you created a separate line in your BAT file for each XCOPY of a different source directory?  If so, we could do that a little cleaner I think.  If you want to share the code happy to take a look.  Either way glad to be of some help, thanks.

~bp