Difference between revisions of "ReNamer:Command Line"
m (Up navigation link added) |
|||
Line 1: | Line 1: | ||
+ | {{Up|ReNamer}} | ||
{{Cleanup| | {{Cleanup| | ||
* Combine short and extended sections into one | * Combine short and extended sections into one |
Revision as of 21:15, 13 March 2012
ReNamer supports several command line parameters. Different parameter types cannot be combined together.
Parameter | Description |
---|---|
Paths to files and folders which will be automatically added to the program. Program's default settings will be used for adding folders. Masked paths can also be used, e.g. "C:\Pictures\*.jpg" | |
Load preset specified by a preset name or a full path. Optionally, paths to files/folders can be appended to the end on this command, and they will be automatically added to the program. | |
Load preset specified by a preset name or a full path and proceed with Preview and Rename actions. Upon successful Preview and Rename operations, program will close automatically. Otherwise, graphical user interface will become visible and an appropriate error message will be displayed. Paths to files/folders can be appended to the end on this command, and they will be automatically added to the program. | |
Add following files/folders to already running instance of the program. If no running instance is found - launch a new one. | |
Load a list of files/folders from the following list files. | |
Remove all manually turned on associations with the program, e.g. presets association. For advanced users only! |
Examples:
- "ReNamer.exe" /enqueue "C:\Folder" "C:\Pictures\*.jpg"
This command will add to already running instance of the program contents of folder "C:\Folder" (depending on the default settings) and all *.JPG files from folder "C:\Pictures".
- "ReNamer.exe" /preset "MyRules" "C:\Folder"
This command will launch a new instance of the program, will load the preset with the name "MyRules", and will add contents of folder "C:\Folder" (depending on the default settings).
- "ReNamer.exe" /rename "MyRules" "C:\Folder"
This command will launch a new instance of the program, will load the preset with the name "MyRules", will add contents of folder "C:\Folder" (depending on the default settings), and will execute Preview and Rename operations (program will close upon successful completion of all operations).
- "ReNamer.exe" /list "List1.txt" "List2.txt"
Where "List1.txt" and "List2.txt" are lists of files (one per line), with absolute or relative paths (relative to the list file). The contained paths will be loaded into ReNamer.
Extended Article
ReNamer can be launched using command line.
The general format for the command is as follows:
"ReNamer.exe" <Parameters>
The parameters are listed in the following table. Different parameter types cannot be combined together.
Parameters | Description |
---|---|
Launch ReNamer and add all files to the Files pane. You will have to finish the rest of the steps yourself: add rules, preview the items and rename them. While composing the command, replace <files> with the absolute paths to files and folders to be renamed.
Note: This explanation applies to all the commands given below wherever <files> parameter is used. | |
Launch ReNamer and load the preset specified by a preset name or a full path to the preset file.
Example: "ReNamer.exe" /preset "MyRules" "C:\Folder"
| |
Launch ReNamer, load preset specified by a preset name or a full path to the preset file, add the files and folders listed at the end on this command line, and then proceed with Preview and Rename actions. ReNamer's behavior changes basing on whether there are any problems during renaming.
Example: "ReNamer.exe" /rename "MyRules" "C:\Folder"
| |
Add the listed files/folders to an already running instance of ReNamer. If no running instance is found, launch a new one.
Example: "ReNamer.exe" /enqueue "C:\Folder" "C:\Pictures\*.jpg"
| |
Load a list of files/folders from the list files that follow the command.
| |
Remove all manually turned on associations with the program, e.g. presets association.
|
Note: The examples shown above assume that the Windows PATH environment variable is set properly.
If not, you will have to do one of the following:
- Add the path of the ReNamer executable to the Windows PATH environment variable. After that, you can use the commands as shown above.
- Use the full path to the ReNamer executable in the command line, e.g. "D:\Util\ReNamer\Renamer.exe" /list "List1.txt" "List2.txt".
Tricks with command line
You can exploit the command line in two different ways:
Application | How |
---|---|
Launch ReNamer with options |
Normally, you launch ReNamer from the Quick Launch bar. At such times, it starts without any rules. But you can launch ReNamer with any of the parameters shown in the table above. Here is the trick:
From now on, whenever you click on the icon, ReNamer will be launched with all the options you've selected. Tip: You can create multiple copies of the icons in your Quick Launch Bar, Desktop or Menu START, and then assign a different command line to each icon. |
Launch ReNamer from other applications |
Many applications allow you to launch Windows commands. In such cases, you can select different files in that application and then invoke ReNamer from the command line mode. This will allow you to rename selected files directly, without having to add them to ReNamer's Files pane first. |