Use Renamer via Batch file in the "same" folder

If you need help on how to use the program
Post Reply
diamondialis
Posts: 1
Joined: 2013-08-19 19:43:36

Use Renamer via Batch file in the "same" folder

Post by diamondialis »

Hey there...

I got a little problem over here.

I want to create a Batch-File "rename-files.bat" that calls the Renamer-Batch-Script "rename-files.arb".

Both files are in the same folder, but the folder variables, so i want the script to use the folder the Scipt is actually in...

But how do I realise that?

Imagine following:

I got pictures in a folder "C:\Pics\13.05 Mallorca"
my Batch-File: "C:\Pics\13.05 Mallorca\rename-files.bat"
my Renamer-Script: "C:\Pics\13.05 Mallorca\rename-files.arb"

Content of the Batch-File:

Code: Select all

@echo off
Renamer.exe -b rename-files.arb -af *.* -g -x
Content of the Renamer-Script:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<AntRenamer Version="2.10.0" Date="19.08.2013">
 <Batch>
  <Enum Mask="%folder1% [%num%]%ext%" Start="1" Digits="4" Incr="1" Restart="1"/>
  <DateTime Mask="f [yy.mm.dd - hh.nn]e" AddSuffix="0" WhichDate="0"/>
 </Batch>
</AntRenamer>
My aim is, that no matter, where i put those two files to, it still works.. with "relative paths" :)

Its actually not working... just nothing happens...
Hope someone can help me ;)

Thanks!
antp
Site Admin
Posts: 9712
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,
You could try to add %cd%\ in front of the filename and mask.
But it is strange, I would expect that the current folder would be used...
Post Reply