![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 5259 Date : 2003-08-10 Author : Garry Deane Subject : Re: Copy fully-specified files to same path on another drive Size(KB) : 0
--- In xxcopy@yahoogroups.com, Michael Marquart wrote: > > It's been pointed out that filenames in the target dirspec might > be a problem, but you can use copy or xcopy in that case, in > place of xxcopy. You're right. Xxcopy requires that the destination is a path. It will not accept a destination path/filename and if given one, it will treat the filename as a directory name. Here's a variation on your batch that will extract just the destination path. This assumes the filenames in filelist.txt are un-quoted. @echo off for /f "tokens=*" %%a in (filelist.txt) do echo xxcopy "%%a" "z:%%~pa" Or as you say, you could use copy or xcopy and not worry about extracting the path. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.