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

Number : 9127 Date : 2004-11-03 Author : Garry Deane Subject : Re: File rename revisited Size(KB) : 1
--- In xxcopy@yahoogroups.com, "jeremyrector66" wrote: > > I am using XXCopy for backup (big surprise). I take a daily > full /backup and hourly incrementals (based on file time/date). > I am finding that putting the hourly backups into /$HH$00 > folders is becoming a little bit unwieldy. I know that XXCopy > does not do file renaming itself. I want to append > "-/$YYMMDD$/$HH$00" to all files in a given directory tree > and flatten the first directory layer (currently "/$HH$00"). > I have seen several scripts for renaming files (notably from > Garry Deane), but sadly making sense of the regular > expressions used in these scripts is currently beyond me. :( > > I need something that I can give a directory name as an > argument that will append "/$YYMMDD$/$HH$00-" to all files > found under that directory tree and flatten the first layer > (currently in the format 1100, 1200, 1300, etc) of directory. > > Any ideas? I'm sure that using either a batch file and/or the /SL switch will be able to do what you want. However I can't quite figure out what you're after. 1. Are you talking about converting your existing backup directories to the new system or changing the way your backups work so that they follow the new system? 2. Can you give some examples of the existing directory structure and what you want these to be after the batch file runs e.g. does your source directory look like the following? \src\041103\file1.txt \src\041103\dir1\file2.txt \src\041103\0900\file1.txt \src\041103\0900\dir1\file2.txt \src\041103\1000\file1.txt \src\041103\1000\dir1\file2.txt And you want then to become: \src\041103\file1.txt \src\041103\dir1\file2.txt \src\041103\0900-file1.txt \src\041103\dir1\0900-file2.txt \src\041103\1000-file1.txt \src\041103\dir1\1000-file2.txt Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.