[ antp.be > Forum ]

[ FAQFAQ - SearchSearch - MemberlistMemberlist - UsergroupsUsergroups - ]

[ RegisterRegister - ProfileProfile - Log in to check your private messagesLog in to check your private messages - Log inLog in ]


Renumbering of marked files

 
Post new topic   Reply to topic    www.antp.be Forum Index -> Ant Renamer > Help
Author Message
pope5
PostPosted: 2017-01-27 14:39:34    Post subject: Renumbering of marked files Reply with quote
View user's profile Send private message 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.
antp
Site Admin
PostPosted: 2017-01-27 15:07:58    Post subject: Reply with quote
View user's profile Send private message Visit poster's website 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.
pope5
PostPosted: 2017-01-27 18:58:55    Post subject: Reply with quote
View user's profile Send private message 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.
antp
Site Admin
PostPosted: 2017-01-27 20:22:33    Post subject: Reply with quote
View user's profile Send private message Visit poster's website Sometimes when I've time I often check the forum wink
No real solution for the problem here, unfortunately.
I usually do all the actions on files by drag & drop files selection in Ant Renamer.
Display posts from previous:   
View previous topic :: View next topic  
Post new topic   Reply to topic    www.antp.be Forum Index -> Ant Renamer > Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
Template made by antp