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

Number : 5248 Date : 2003-08-08 Author : William Boyer Subject : Re: Copy fully-specified files to same path on another drive Size(KB) : 2
Ah, that looks good. I'll try it tonight. I'll let you guys know ... -William --- In xxcopy@yahoogroups.com, Michael Marquart wrote: > > > If you have a list of fully qualified filenames in a text file like: > D:\path\filename1.ext > D:\path\filename2.ext > D:\path\filename3.ext > D:\path\filename4.ext > > then something like this untested batch file may work in NT flavours of > Windows. > > @echo off > for /f "tokens=2 delims=:" %%a in (filelist.txt) do xxcopy "d:%% a" "z:%%a" > > > > > > On Fri, 08 Aug 2003 17:28:25 -0000, William Boyer wrote: > > > 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 > > > -- > Regards, > Michael
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.