![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 5245 Date : 2003-08-08 Author : rgmiller02 Subject : Re: Copy fully-specified files to same path on another drive Size(KB) : 1
--- In xxcopy@yahoogroups.com, "Boyer, William" wrote: > Hello group, > I wish to copy a large number (a few thousand) of files from their current > locations to the same path on another drive. I have them all in a list and > a spreadsheet, so I can create a batch file with the appropriate command to > run on each file. > > When I try, > xxcopy d:\ z: > Each file ends up in the root of z:. (The batch file is many lines with a > different file on each line.) > > When I try, > xxcopy d:\ z:\path> > Each file gets put in a subdirectory with the same name as the file. > > Is there any way to get xxcopy to do this, short of parsing file with path>, removing the filename at the end, then putting it back > together? > > Thanks, > William William, The ending of your path(s) are not obvious from your description. Does each path end with a backslash " \ "? At the risk of stating the obvious, have you tried xxcopy d:\fully\specified\path\ z:\fully\specified\path\ /s The "/s" parameter will cause all files AND subdirectories to be copied. If all you are attempting to do is to copy ALL files from d: to z:, then you won't need the filenames and paths in order to create a large batch file, simply read about the power of XXCOPY in the Technical Bulletins (http://www.xxcopy.com/#tag_10). Also remember that if your path(s) contain spaces, surround the path in quotation marks (i.e. "c:\fully specified\path\"). Hope this helps, Randy
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.