1 (edited by Stefan 2007-04-22 01:29:08)

Topic: Use siren command line for auto renaming in Total Commander

Did you know...

you can save your expressions in Siren as favorites and use them later again.

And you can start Siren with such an favorite as parameter.

So Siren will be started, do it renaming works and close after automatically (if you want).

You can use this auto renaming e.g. in Total Commander
for to change the case of file names.


Here is an short how to.

- - - - - - -


1.) For making the base name of the file name (without the extension) upper case
save in Siren the expression
%ub.%e
as favorite named 'base-u'

2.) Create a new button in TC
Kommando: PATH\to\Siren.exe
Parameter: %N /R /Q /A base-u
Startpfad:

Now select an file in your temp folder.
Then press your new button... the file will be renamed to upper case.


Here is an another tricky feature:
3.)Save the expression
%lb.%e
as favorite named 'base-l'

4.) Modify the TC button to
Parameter: ?%N /R /Q /A base-u

Now TC will show you, because of the ? in front, the command it will execute.
Just modify here in this dialog the u char by base- to l
and so you will choose your second siren favorite 'base-l'.

Now select an file in your temp folder.
Then press your new button... the file will be renamed to lower case.

Tip:
To make the hole file name lower case
use the expression %lf
and save it e.g. as favorite 'lower'

Tip:
for more 'command line' commands of Siren
start Siren with the /? parameter: siren.exe /?

Here  is in short what you will see:
/? : this window
/I : the next parameter is the name of the ".ini" file to use
/E : the next parameter is a rename expression
/A : the next parameter is the name (case sensitive) of a       favorite expression
/F : the next parameter is a file loading filter
/S : the next parameter is a file selection filter
/D : the next parameter is a directory name to load
/T : force the recursive loading mode
/N : force the non recursive loading mode
/P : do not save configuration data in the ".ini" file       (directories, expressions, options ...)
/R : rename
/Q : quit



Tip:
You can create an TC button for each Siren favorite, if you don't want to see the dialog box.
You can use every name you like instead of 'base-u' and 'base-l'
Remember to use %Commander_Path% in Total Commander to be portable.
Remember to donate if you like Siren.

%N is an Total Commander parameter:
%N places the filename under the cursor into the command line




      --
   For more details just download Siren at http://www.scarabee-software.net/en/siren.html and consult the help.
   No installation needed, unzip and run. Siren stores it settings into an ini file.   <Here> you can see some screen shots of Siren.
   Enjoy Siren, the powerfully portable freeware renamer.