Page 1 of 1
Batch Rename Special-Saving Command
Posted: 15 Jul 2012 20:47
by TestMeister
I would like to be able to select one or more files, and by selecting a user-defined function, have characters added as a prefix:
ThisIsATest.txt >>> P-ThisIsATest.txt
The Rename Special function will do this but I don't see a way to save a given command so it will persist in the context menu.
I thought perhaps a short script assigned to a UDF button; can anyone assist with the script command?
Many thanks!
Re: Batch Rename Special-Saving Command
Posted: 15 Jul 2012 21:18
by highend
Scripting commands needed:
get
rename
and a foreach loop...
Look in the scripts exchange part of the forum, Stefan, PeterH, myself and a few others have posted dozen of script (snippets), that use these commands for comparable issues.
Re: Batch Rename Special-Saving Command
Posted: 15 Jul 2012 22:08
by Stefan
TestMeister wrote:I would like to be able to select one or more files, and by selecting a user-defined function, have characters added as a prefix:
ThisIsATest.txt >>> P-ThisIsATest.txt
The Rename Special function will do this but I don't see a way to save a given command so it will persist in the context menu.
I thought perhaps a short script assigned to a UDF button; can anyone assist with the script command?
Many thanks!
If you have an working rename command, you can add it as User-defined Command (UDC) too.
And then you can add even an keyboard shortcut.
.
Re: Batch Rename Special-Saving Command
Posted: 30 Jul 2012 06:05
by stapelt
Using the Rename Special->RegExp Rename
Code is: ^(.*)$ > PreFix-$1
This is what I use and it works on all the selected items.
Re: Batch Rename Special-Saving Command
Posted: 30 Jul 2012 12:57
by TheQwerty
stapelt wrote:Using the Rename Special->RegExp Rename
Code is: ^(.*)$ > PreFix-$1
This is what I use and it works on all the selected items.
FYI: you can shorten that to just: