Command line
ReNamer supports several command line parameters for launching the program with files pre-loaded, applying presets automatically, and performing unattended renaming operations.
The general format is:
"ReNamer.exe" /parameter [arguments]
Note that multiple parameter types cannot be combined together.
The examples below do not include the full path to ReNamer.exe, as it can differ between installations. To run these commands, either add the ReNamer installation folder to the Windows PATH environment variable, or use the full path to the executable in each command, e.g. "C:\Program Files\ReNamer\ReNamer.exe".
Command line parameters can also be appended to any ReNamer shortcut via its Properties, so that the shortcut always launches ReNamer with the desired options.
Commands
Add files
"ReNamer.exe" <files>
Launch ReNamer and add the specified files and folders to the Files pane. You will then need to add rules, preview, and rename the files yourself.
Replace <files> with absolute paths to the files and folders you want to rename, separated by spaces. Wildcard paths are also supported, e.g. "C:\Pictures\*.jpg".
- Even if a ReNamer window is already open, this command will always launch a new window.
- When adding folders, Filter settings determine which files are included.
Example:
"ReNamer.exe" "C:\Folder" "C:\Pictures\*.jpg"
This launches ReNamer and adds the contents of C:\Folder (according to the current Filter settings) and all .jpg files from C:\Pictures to the Files pane.
Load preset
"ReNamer.exe" /preset <preset> [<files>]
Launch ReNamer and load a preset specified by its name or by a full path to the preset file. You will then need to preview and rename the files yourself.
Paths to files and folders may optionally be appended to the command, and they will be added to the Files pane automatically.
You can use the Create links option in the Presets menu to automatically generate shortcut files for all available presets using this mode.
Example:
"ReNamer.exe" /preset "MyRules" "C:\Folder"
This launches a new ReNamer window, loads the preset named MyRules, and adds the contents of C:\Folder to the Files pane (according to the current Filter settings).
Rename automatically
"ReNamer.exe" /rename <preset> [<files>]
Launch ReNamer, load a preset specified by its name or by a full path to the preset file, add any specified files and folders, and then automatically proceed with Preview and Rename operations.
- If both operations complete successfully, the ReNamer window closes automatically.
- If any errors occur, the ReNamer window remains open and displays an appropriate error message.
You can use the Create links option in the Presets menu to automatically generate shortcut files for all available presets using this mode.
Example:
"ReNamer.exe" /rename "MyRules" "C:\Folder"
This launches a new ReNamer window, loads the preset named MyRules, adds the contents of C:\Folder, and executes the preview and rename operations. The window closes automatically on success.
Silent rename
"ReNamer.exe" /silent /rename <preset> [<files>]
Perform an unattended, fully automated renaming operation. The behavior is similar to /rename, but the graphical user interface is never shown, and any warnings or errors are silently discarded.
A non-zero exit code is returned if any warnings or errors occurred during the operation. Added in v6.6.0.5 Beta.
Example:
"ReNamer.exe" /silent /rename "MyRules" "C:\Folder"
Enqueue files
"ReNamer.exe" /enqueue <files>
Add the specified files and folders to an already running instance of ReNamer. If no running instance is found, a new one is launched.
Example:
"ReNamer.exe" /enqueue "C:\Folder" "C:\Pictures\*.jpg"
If ReNamer is already running, this adds the contents of C:\Folder and all .jpg files from C:\Pictures to the existing instance. If ReNamer is not running, a new instance is launched and the files are added there.
Load from list
"ReNamer.exe" /list <list files>
Load files and folders into ReNamer from one or more list files. A list file is a plain text file containing one file path per line. Paths in the list file can be absolute or relative — relative paths are resolved relative to the list file itself, not to the ReNamer executable.
Example:
"ReNamer.exe" /list "List1.txt" "List2.txt"
This loads all file paths contained in List1.txt and List2.txt into the Files pane.
Uninstall
"ReNamer.exe" /uninstall
Remove all manually enabled associations with the program, such as the presets association.
This option is intended for advanced users only.