[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 5246 Date : 2003-08-08 Author : William Boyer Subject : Re: Copy fully-specified files to same path on another drive Size(KB) : 3
Thanks for the attempt. i'll try to clarify. First, I am not trying to get a complete disk or even complete subdirectories. What I mean by "" is the filename with the path included, thus it cannot end with \ So what I want is to copy a bunch of individually specified files from d: to z: "d:\fully specified path 1\file 1" to "z:\fully specified path 1\file 1" and "d:\fully specified path 2\file 2" to "z:\fully specified path 2\file 2" etc. Here is an example (I'll put line numbers in [] to make clear where new lines start) [1]xxcopy "D:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam001.jpg" z:\ [2]xxcopy "D:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam002.jpg" z:\ This puts Jam001.jpg and Jam002.jpg in z:\ Another example: [1]xxcopy "D:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam001.jpg" "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam001.jpg" [2]xxcopy "D:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam002.jpg" "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam002.jpg" This puts Jam001.jpg in the DIRECTORY "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24\Jam001.jpg", so the fully qualified filename is "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam001.jpg\Jam001.jpg" and Jam002.jpg ends up as "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24\Jam002.jpg\Jam002.jpg" I'd like to avoid the parsing necessary to convert the commands to the following form, which I expect would work Another example: [1]xxcopy "D:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam001.jpg" "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24\" [2]xxcopy "D:\My Documents\My Pictures\SEB\My Jams\2001-12-24 \Jam002.jpg" "z:\My Documents\My Pictures\SEB\My Jams\2001-12-24\" I'm looking for way to make xxcopy duplicate the source path in the destination. Thanks, William --- In xxcopy@yahoogroups.com, "rgmiller02" wrote: > --- 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:\ file with > > 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 specified > > 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.