# File Renamer

## File Renamer

## Other Software

## Placeholders

Within the following functions and input fields, the FileRenamer allows using placeholders: Mask, Search and Replace, Insert Text, Delete Text and Append Text.

The placeholders are replaced by what they stand for during renaming depending on the corresponding file or folder, time or list position. Placeholders can be combined with arbitrary other characters and they can also be used within regular expressions.

At the moment, the following placeholders are available in the FileRenamer:

## File Name and Folder

Placeholders holding the name and path of the file.

%name% | Old Name of File |

%ext% | Old Extension of File |

%folderX% %folder‑X% |
The placeholders %folder1%, %folder2%, %folder3% up to %folder50% as well as %folder-1%, %folder-2%, %folder-3% up to %folder-50% are standing for the names of the folders in which the file is stored. Positive numbers like in %dir1% count the folders from the drive to the file, negative numbers like in %dir-1% count the other way around. Accordingly, the placeholder %folder1% is standing for the first folder of the path, %folder-1% is standing for the first folder below the file. When having the file C:\Hollydays\Trips\Norway\Image100.jpg %folder1% will be replaced with "Hollydays", %folder-1% with "Norway", when renaming the file. Correspondingly, the placeholder %folder2% is standing for the second folder in the path, this is "Trips" in that case (%folder-2% would be the same, counted from the top). You can find some examples how to use the photo placeholders in this tutorial. |

## Numbering

Placeholders allowing a file numbering.

%num% | Number of File within the list; the initial value, the increment and the number of leading zeros can be adjusted in the settings |

%abs% | Absolute Number of Files that are currently in the list |

## Current Date and Time

Placeholders refering to the current date and time.

%yyyy% | Current Year written with four digits |

%yy% | Current Year written with two digits |

%mm% | Current Month, always two digits, leading zeros if necessary |

%m% | Current Month, one or two digits without leading zeros |

%dd% | Current Day, always two digits, leading zeros if necessary |

%d% | Current Day, one or two digits without leading zeros |

%hh% | Current Hour, always two digits, leading zeros if necessary |

%h% | Current Hour, one or two digits without leading zeros |

%ii% | Current Minute, always two digits, leading zeros if necessary |

%i% | Current Minute, one or two digits without leading zeros |

%ss% | Current Second, always two digits, leading zeros if necessary |

%s% | Current Second, one or two digits without leading zeros |

## Last Modification

In order to use the last modification date of the the file or folder as placeholder, we can add the extension "-m" to the placeholders for the current time and date.

%yyyy-m% | Last Modification Year written with four digits |

%yy-m% | Last Modification Year written with two digits |

%mm-m% | Last Modification Month, always two digits, leading zeros if necessary |

%m-m% | Last Modification Month, one or two digits without leading zeros |

%dd-m% | Last Modification Day, always two digits, leading zeros if necessary |

%d-m% | Last Modification Day, one or two digits without leading zeros |

%hh-m% | Last Modification Hour, always two digits, leading zeros if necessary |

%h-m% | Last Modification Hour, one or two digits without leading zeros |

%ii-m% | Last Modification Minute, always two digits, leading zeros if necessary |

%i-m% | Last Modification Minute, one or two digits without leading zeros |

%ss-m% | Last Modification Second, always two digits, leading zeros if necessary |

%s-m% | Last Modification Second, one or two digits without leading zeros |

## Creation Date

For using the file or folder creation date as placeholder, we can add the extension "-c" to the placeholders for the current time and date.

%yyyy-c% | Current Year of Creation written with four digits |

%yy-c% | Year of Creation written with two digits |

%mm-c% | Month of Creation, always two digits, leading zeros if necessary |

%m-c% | Month of Creation, one or two digits without leading zeros |

%dd-c% | Day of Creation, always two digits, leading zeros if necessary |

%d-c% | Day of Creation, one or two digits without leading zeros |

%hh-c% | Hour of Creation, always two digits, leading zeros if necessary |

%h-c% | Hour of Creation, one or two digits without leading zeros |

%ii-c% | Minute of Creation, always two digits, leading zeros if necessary |

%i-c% | Minute of Creation, one or two digits without leading zeros |

%ss-c% | Second of Creation, always two digits, leading zeros if necessary |

%s-c% | Second of Creation, one or two digits without leading zeros |

## Last Access

Like for the modification date and creation date placeholders, the suffix "-a" is standing for the last access to the file or folder.

%yyyy-a% | Last Access Year written with four digits |

%yy-a% | Last Access Year written with two digits |

%mm-a% | Last Access Month, always two digits, leading zeros if necessary |

%m-a% | Last Access Month, one or two digits without leading zeros |

%dd-a% | Last Access Day, always two digits, leading zeros if necessary |

%d-a% | Last Access Day, one or two digits without leading zeros |

%hh-a% | Last Access Hour, always two digits, leading zeros if necessary |

%h-a% | Last Access Hour, one or two digits without leading zeros |

%ii-a% | Last Access Minute, always two digits, leading zeros if necessary |

%i-a% | Last Access Minute, one or two digits without leading zeros |

%ss-a% | Last Access Second, always two digits, leading zeros if necessary |

%s-a% | Last Access Second, one or two digits without leading zeros |