Page 1 of 1

Renumbering of marked files

Posted: 2017-01-27 13:39:34
by pope5
I want to renumber some files in a folder. However, I do not succeed to renumber only those files I have marked. I only can renubmer all files in a folder (or files with a certain extension).

My .arb file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<AntRenamer Version="2.10.0" Date="27.01.2017">
<Batch>
<Enum Mask="%num% - %name%%ext%" Start="1" Digits="2" Incr="1" Restart="1"/>
</Batch>
</AntRenamer>


I have extended the registry by the following entry

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Enumerate all mp3 files in directory (Dir)]
[HKEY_CLASSES_ROOT\Directory\shell\Enumerate all mp3 files in directory (Dir)\command]
@="C:\\Programme (User)\\AntRenamer\\Renamer.exe -b \"C:\\Programme (User)\\AntRenamer\\numberfiles.arb\" -af \"%1\\*.mp3\" -g -x



I have also tried, to add the following entry. But this does not work. Each file gets the numer "01 -" and all files in the folder are renamed (not only the marked ones).

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Enumerate all files in folder]

[HKEY_CLASSES_ROOT\*\shell\Enumerate all files in folder\command]
@="C:\\Programme (User)\\AntRenamer\\Renamer.exe -b \"C:\\Programme (User)\\AntRenamer\\numberfiles.arb\" -af *%1.\" -g -x"

any idea, how to achieve a renumbering of marked files only?

Thank you for your help.

Posted: 2017-01-27 14:07:58
by antp
What do you mean by "marked" files? Selected ones?
In the first case, Windows passes the folder name to the program, not the list of selected files.
In the second case, I don't know why Windows applies that to all files and not just the selection, but it would not work anyway since the program is called separately for each file, not once for a list of files.
To have something work effectively on a set of selected files, one would have to write a shell extension (as a DLL file) to appear in the context menu, it is not doable properly with just a few registry entries.
Some time ago I searched a little how to do that, but it seemed complicated, so I gave up.

Posted: 2017-01-27 17:58:55
by pope5
Thank you for your quick reply. It's really amazing, how fast you reply.

Of course i meant "..selected files".

But unfortunately, the renumbering doesn't work because Ant Renamer is called for each file and thus always sets the number to 01.

Posted: 2017-01-27 19:22:33
by antp
Sometimes when I've time I often check the forum ;)
No real solution for the problem here, unfortunately.
I usually do all the actions on files by drag & drop files selection in Ant Renamer.