View Full Version : Multiple file rename bug
Multiple file rename bug
For example,
abc1.txt
abc2.txt
rename to abcd1.txt and abcd2.txt
abc1.txt -> abcd..txt
abc2.txt -> Error renaming abc2.txt: Target file already exists
Previous BC 2.0 : no problem.
armsys
24-Jan-2004, 05:18 AM
Are you using the latest version?
Craig
24-Jan-2004, 10:31 PM
We changed the DOS rename in 2.1 to be compatible with the Windows rename behavior, and that type of multi-file rename doesn't work any more. In order to do so you'll need to use the Regular Expression rename instead. Our regular expression support is documented in the help file. The New Mask can also use the additional characters $1-$9 to refer to subexpressions from Old Mask. In your case it would be something like:
Old Mask: abc(.)\.txt
New Mask: abcd$1\.txt
We haven't had a chance to fully document the Regular Expression renames yet, so if you need further help let me know.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.