Running a Batch File

Advanced Renamer forum
#1 : 08/03-21 18:57
Clayton
Clayton
Posts: 1
Hello, I have the preset below saved and have created a batch file through the CLI configuration panel. How would I go about running that batch file on the folder full of files I have open in Explorer? The command created by the configuration panel is below as well?

"C:\Program Files\Advanced Renamer\arenc.exe" -e C:\Users\cgrove\advancedrenamerfiles\workpictures.aren -t files -m rename

<DirName:-5> <DirName:-6> #<DirName:1> <Inc NrDir:01>


08/03-21 18:57
#2 : 09/03-21 01:02
David Lee
David Lee
Posts: 662
You need to specify the pathname of the folder in the command line using the -p switch.

If you want to run the batch file from the Explorer context menu when you right-click on a folder then you can specify the path as %1 and add the batch file to your "SendTo" folder.

The batch file will then appear as an option under "Send to" in the context menu.

ie "C:\Program Files\Advanced Renamer\arenc.exe" -e C:\Users\cgrove\advancedrenamerfiles\workpictures.aren -t files -p %1 -m rename

Assuming your profile name is cgrove, your SendTo folder should be :
C:\Users\cgrove\AppData\Roaming\Microsoft\Windows\SendTo

Note that your AppData folder will be hidden by default however you can open it as %appdata% without changing options in Explorer

ie search for %appdata%\Microsoft\Windows\SendTo





09/03-21 01:02 - edited 12/03-21 10:57