![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 2657 Date : 2002-08-14 Author : dayvah49 Subject : Re: basic src dst question Size(KB) : 1
Jeff, I have found one way to rename a filename (not the file ext.) using XXCOPY's folder "macro reference" /$YYYY-MM-DD$ and the "directory-flattening" /SX switch. With a batch file using your ex. the file is renamed to foobar`2002-08-14_1314.abc on another HD or partition. xxcopy c:\foobar.abc d:\temp\/$YYYY-MM-DD_HHNN$\ xxcopy d:\temp\*\foobar.abc d:\temp1\ /sx xxcopy d:\temp\2*\* /rs/yy /RS deletes the source temp folder, file and /YY means no prompt is given before deletion! If you try this leave off /YY until it's fully tested. I always do this operation in a set of temp folders to minimize the chance of a catastrophe. Michael --- In xxcopy@y..., "Jeff Jansen" wrote: > I must be missing something very basic here. I'm trying to make copies of a > set of files and give the copies different extensions. But when I try to > execute: > > xxcopy *.xyz *.abc > > I get the following error message: > > Invalid destination directory name. > > But the plain DOS command > > xcopy *.xyz *.abc > > works fine. > > Even this doesn't work: > > xxcopy .\*.xyz .\*.abc > > Why doesn't xxcopy do this simple operation? > > BTW, this is a simplification of what I'm really trying to do which is make > copies of a set files so that the copies are date-time stamped. For example, > I'd want the file foobar.abc to become foobar_2002-08-14_0930.abc. any > suggestions on how to do that with xxcopy? > > Jeff Jansen > Portland, Oregon > USA > > > > [Non-text portions of this message have been removed]
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.