# Command Line

Program supports several command line parameters.

Parameters:

<files> | 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"
/preset <preset> | 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.
/rename <preset> | 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.
/enqueue <files> | Add following files/folders to already running instance of the program. If no running instance is found - launch a new one.
/uninstall | Remove all manually turned on associations with the program, e.g. presets association. For advanced users only!

Example:

- "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).

Important: Always surround paths to files/folders with the inverted commas, otherwise, they may be handled incorrectly.