BestSync Icon BestSync Help Home / Main Index / Task Wizard / Rename

"Rename File Rule" Dialog Box

This dialog box defines the renaming rule. Wild card characters and special fields can be used in the renaming rule.

"Old name" Designate the original file name to rename.

"New name" Designate the new name .

"Continue?" This column is unchecked by default, the renaming process breaks if this rule is matched.
If this column is checked, the renaming process continues the next rule by the new renamed name.

Wild card characters:

"*" Arbitrary character sequences;

"?" An arbitrary character;

"#" An arbitrary number.

The portion applicable to wild card in an old name can be diverted to the new name.

For example, *1 in the old name need to be inserted in the new name, just insert *1 into the new file name.

Special fields :

<Parent>:The name of the parent folder. 

<Name>:The old file name.

<ext>:The old extension.

<upper>:Upper case of the old file name and extension.

<lower>:Lower case of the old file name and extension.

 <date>:The file date string in "yyyyMMdd" format.

<time>:The file time string in "hhmmss" format.

 <year>:The year number string of the file time in "yyyy" format.

<month>:The month number string of the file time in "MM" format.

    January = 1, February = 2, and so on.

 <day>:The day number string of the file time in "dd" format.

<hour>:The hour number string of the file time in "hh" format.

 <minute>:The minute number string of the file time in "mm" format.

<second>:The second number string of the file time in "ss" format.

<weekday>:The weekday number string of the file time.

    Sunday = 0, Monday = 1, and so on.

 <cdate>:The date string in "yyyyMMdd" format of the current time.

<ctime>:The time string in "hhmmss" format of the current time.

<cweekday>:The weekday number string of the current time.

    Sunday = 0, Monday = 1, and so on.

 <rc_fr:character_set>: Used in the old name pattern in pair with <rc_to:character_set> of the new name pattern. These two fields are used to replace one set of characters to another set of character. Only this one field can be used in one rule. If the rc_fr character_set is more than the rc_to character_set, the missing pair character will be removed from the new name. See the Example5 below.

 <rs_fr:sub_string>: Used in the old name pattern in pair with <rs_to:sub_string> of the new name pattern. These two fields are used to replace one sub-string to another sub-string. Only this one field can be used in one rule. If the rs_to sub_string is empty, the rs_from sub-string will be removed from the new name. See the Example6 below.

The above special fields can be inserted in the new file name.

Example1:

Add the file date and time string to new file name:

Old name pattern: *1.*2       ---> New name pattern: *1-<date><time>.*2

Example2:

Change all the .doc file to .bak file:

Old name pattern: *1.doc       ---> New name pattern:*1.bak

Example3:

Change all the Old*.* to New*.*:

Old name pattern: Old*1.*2       ---> New name pattern: New*1.*2

Example4:

Add the timestamp to file name:

Old name pattern: *1.*2       ---> New name pattern:*1(<month>-<day>-<year>).*2

Example5:

Replace a set of characters to another set of characters:

Old name pattern: <rc_fr:^_|> ---> New name pattern:<rc_to:-->

Old name: abc^def_g|hi.txt   ---> New name:abc-def-ghi.txt

Example6:

Replace a set of characters to another set of characters:

Old name pattern: <rs_fr:black> ---> New name pattern:<rs_to:white>

Old name: He is black and blacker.txt   ---> New name:He is white and whiter.txt


BestSync Icon BestSync Help Home / Main Index / Task Wizard / Rename