Did you have every time the same renaming needs?
Did you want often to rename your pictures with the date of taken?
Did you need to  change your HTML file names to lower case all the time?
Then you can use Siren to find an nifty solution and store this expression in Siren as favorite. Use an short name like e.g. "ToLower".

Then make an shortcut to Siren.exe... e.g. on your desktop.
    A few ways to do it:
    * Right click in the desired location and choose New -> Shortcut. Complete the wizard
    * Copy the Siren's .exe, then right click where you want your shortcut to be. Select "Paste Shortcut"
    * Drag the Siren's .exe with your right mouse button to the desired location, then release and choose "Make shortcut".





After this, right click on the shortcut. Select properties.
The field to be edited is the "Target:" field.
    It would look like:
   "c:\program files\Siren\Siren.exe"

To start Siren with your stored favorite expression
add the name of your favorite as startup parameter:

click in the target field and add behind Siren.exe:
/A ToLower






Then Siren needs more parameter to work automatically if you want this: /R /Q /P

(start Siren.exe in an DOS-Box with the /? parameter for more info about this parameters
/A : the next parameter is the name (case sensitive) of a  favorite expression
/R : rename
/Q : quit
/P : to NOT store this as "last used" in the Siren.INI)

And Siren needs to know which files to rename... therefor we use an windows parameter: "%1"






After that, the whole target field should contain:

"c:\program files\Siren\Siren.exe"   /A ToLower /R /Q /P "%1"

Close the shortcut dialog with [OK]




Now you can drag and drop your files to rename over this shortcut
and they will be renamed. (maybe press F5-key in Explorer to refresh the view)


--------
More info:
http://en.wikipedia.org/wiki/Computer_shortcut

--
Edit:
/P parameter added. please see the next post too



      --
   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.

177

(2 replies, posted in How to ...)

Remove all brackets:

%b("(","")(")","")("[","")("]","")("{","")("}","").%e


-----------------------------------------------------------------------------
There is an regex POSIX class to match punctuations, [[:punct:]]
%b(s/[[:punct:]]/ /g).%e

But this class match to much:  ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ .


.



      --
   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.

178

(2 replies, posted in How to ...)

If you have found useful expressions
maybe you would like to share them with others?



Remove all digits from base name:
%b("0","")("1","")("2","")("3","")("4","")("5","")("6","")("7","")("8","")("9","").%e

Or better (means shorter) use regular expression:
%b(s/\d//g).%e

Note: \d stand for the group of all digits, see http://boost.org/libs/regex/doc/syntax_perl.html

See the Siren help too:

- Modification by regular expression
   The usage is near of the standard:
   "(s/exp/fmt/mod)"
   exp  : regular expression
   fmt  : replacement format
   mod  : modifiers
          g to treat all occurrences
          i for a case insensitive search

-------------------------------------------------------------------------

Exchange all digits in base name with space:
%b(s/\d/ /g).%e


Exchange all digits in base name with underscore:
%b(s/\d/_/g).%e


.

Hi,

how can i start Siren in command line mode
with an favorite as parameter
and execute this on a few files at once?


I can use
/R /Q  /A favorite  file1.ext   file2.ext   file3.ext  ...

but i need
/R /Q /A favorite /L files.lst
to use a list of files as parameter.


For example:

C:\Test>Dir /A /S *.txt >files.lst

files.lst
C:\Test\abc\file-0ne.txt
C:\Test\abc\file-two.txt
C:\Test\1.txt
C:\Test\2.txt
...


Advantage:
1.) This way one could build a list of files as text file and execute the favorite to all the files in that list.
2.) And this way one could have a list of always the same file name to execute.

3.) We could make batch files:
@ECHO OFF
C:
CD MyWebSides
Dir /A /S *.html >files.lst
WAIT
Siren  /R /Q     /A favorite_lower_ALL     /L C:\MyWebSides\files.lst


4.) We could use this in Total Commander:
Siren  /R /Q /A favorite /L %L




Can you please implement such an function?

greeds
Stefan

180

(1 replies, posted in Evolution requests)

For not to use the name of the favorite
for to describe what this favorite is for....

... i'd like to suggest to have an description part also.

nom_004=uf
exp_004=%uf
des_004=Change the hole file name (incl. the EXT) to upper case.


This way the favorite name
could be keeped small for the use with the /A command line parameter.


greetings

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.

Hi,

I having  a lot of files
but only a few where my regex match.



Would be nice if this lines
-where my pattern match (i.e. file names change)-
would become an other color.

And/Or an check mark in a new column "Match found"
witch one could sort to bring this match to the top.

And/or an filter "show files witch would get an new name only"

Thank you.

183

(1 replies, posted in Evolution requests)

Just brain storming.

How about an new column called "original order" or like this  as  "sorting column"?

* Siren could automatically give an "ordner number" from top to bottom for each file
* this number is valid till i close Siren (sorry ;-) )
* so no matter what i do... this order number are always in order as they where when i start Siren
(maybe even if i switch directories?)

So i can order the files later, if i want,
in that order they where when i start Siren,
simple by sort this "sorting column"

184

(1 replies, posted in Evolution requests)

Just brain storming.

How about adding an column with the first 50 Bytes (= 25/50 chars) of the file content.

So we could:

1. see what file typ it is, even if we del/modify the extensions (well, mostly and mostly for advantage users)


2. the User could sort by file content (if he use the first line in those text files for e.g. an comment)



3. maybe you would like to add an parameter like %FC for to rename the file name with the first words of an text file?


e.g.
report.txt ----First line: Report generated: 2007-02-08
report1.txt ----First line: Report generated: 2007-02-09
report2.txt ----First line: Report generated: 2007-02-12
report3.txt ----First line: Report generated: 2007-02-13

Rename: %b(1,6)-%FC(19,10).%e

Result:
report-2007-02-08.txt
report-2007-02-09.txt
report-2007-02-12.txt
report-2007-02-13.txt



.

185

(5 replies, posted in Evolution requests)

What's about if you add a MD5 Column?
(MD5 depends to the file content, not the file name, AFAIK)

So we could:
* sort by MD5
* export the original names
* do your tests
* sort by MD5
* rename back from file list.txt

.

186

(1 replies, posted in Evolution requests)

Maybe a nice feature would be randomize the name and/or the extensions.

E.g. for security,
when i wipe my files, the file names are still visible (on the disc).

- - -

Or for security
when i password protect archive my files in an ZIP or RAR archive.

One can't unpack  this archives without the password
but can list the content and see the file names.

Therefor it's good to randomize the names.
The pair list to rename this files back could be in the archive too.

(BTW: the length of the name should be different long also)


- - -

Hmmm, brain storming:
just thought i can do this with "rename from list" also, isn't it?
I only have to make an list with randomized names bevor.
But then i have always the same names.
And this is no solution for randomize rename an hole disc.

If i select in 1.9  with W2k an favorite
i see only the name i had given this favorite.  (I mean i see not the expression itself)

I have to choose it first to see what is the expression.

Maybe an tool tip (little yellow one)
which show the hole expression
would be nifty???

Or show the expression in the status bar?

Just brain storming ;-)

188

(5 replies, posted in Evolution requests)

rplr wrote:

It will be possible to get lines from text files and use them in the rename expression.

Lil bit unclear which of my two suggestions you mean.


Just brain storming...

For example
- i have a few mp-3 files which i use for renamer tests

It would be nice if i can rename this files back to the "original" name with a text file:

Files on disc:
123.mp5
abc.mp5
...

Text file:
some band - some song.mp5
other singer - other song.mp5
...

Relation ship: one line <-> one file




------------------------------------------------
The "pair"-renaming wouldn't work here because the file names on disc are unknown due the tests.
But the pair rename feature would help in other ways.

f.ex. with regEx
NEW NAME:Rename THIS

Your Result.TXT::result-\d\d-\d\d-\d\d.{3,5}\.log

Explanation:
left of the colon : is the new name,
on the right is the name to rename.

I have here an double colon :: for to detect and use regEx expression.

Relation ship: one name <-> one encountered search expression



Sorry, don't know if this is to much... just brain storming.

Very fine ;-)
I thank YOU.

Hi rplr,
i wish you an happy new year.

I have another question i came along by using Siren.

Can we have the "Replace characters" function as "Expression" too please?

1. we would be able to store this expression (drop down list, favorites)
2. we can access it quicker
3. we don't have to clear the Replace characters"  fields



A few suggestion/help how this could look:

use pipe symbol | as delimiter between each pair:
%f ( " s | ire | n "  ,  " Goo | d | !  " )

siren ==> Good!

and use 'less then' and 'greater then' angle brackets to get the special meaning of this expression
%f ( < a | bcd | e >  ,  < x |  | z  > )




This would shorten multi expresions like:
%b("old","new")("Feat.","ft")("money","$")("%20"," ")("%7E","~").%e

too to:
%b(<old|Feat.|money|%20|%7E> , <new|ft|$| |~>).%e



Till that an info for user:
in 'Options...' under 'Modifications' and 'Replace characters'
we can wrote in the 'From' field a few chars
that would be exchanged with that chars that are
in the 'To' field on the same position as the char above.
e.g.
From: ABC
To: 123
All upper case A's will be exchanged to an '1', all B's to '2' and all C's to '3'.

Mit einem weiterem Parameter können wir angeben,
wie viele Vorkommen wir Ersetzen möchten:

Syntax: %b( "suche" , "ersetze" , zahl , ZAHL ).%e
Erklärung: ZAHL gibt hier an wie viele Vorkommen wir Ersetzen möchten:

Beispiel: "Dateiname.dessen.Wörter.durch.einen.Punkt.getrennt.sind.txt"

Expression: %b( "." , " " , 3 , 2 ).%e
Ergebnis: "Dateiname.dessen.Wörter durch einen.Punkt.getrennt.sind.txt"

Wir haben     ab dem dritten Punkt      zwei Punkte       durch Leerzeichen ersetzt.



      --
   Für weitere Details lade dir  Siren einfach bei http://www.scarabee-software.net/en/siren.html  herunter und lese die Hilfe (in Englisch)
   Siren muss nicht installiert werden und speichert alle Einstellungen in ini-Dateien.  <Hier> kann man ein paar Bilder von Siren in Aktion sehen.
   Viel Spaß mit Siren, dem umfangreichen und portablen Umbenenner. Kostenlose Freeware. Immer auf dem USB-Stick dabei.



      --
   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.

Mit einem weiterem Parameter hinter dem letzten Anführungszeichen können wir angeben,
ab dem wievieltem Vorkommen wir mit dem Ersetzen beginnen möchten:

Syntax: %b( "suche" , "ersetze" , ZAHL ).%e
Erklärung: ZAHL gibt hier an ab dem wievieltem Vorkommen wir mit dem Ersetzen beginnen möchten

Beispiel: "Dateiname.dessen.Wörter.durch.einen.Punkt.getrennt.sind.txt"

Expression: %b( "." , " " , 3 ).%e
Ergebnis: "Dateiname.dessen.Wörter durch einen Punkt getrennt sind.txt"

Problem: die einzelnen Wörter des Dateinamens sind durch Punkte getrennt. Wir hätten gerne Leerzeichen als Trenner.

Syntax: %b( "suche" , "ersetze" ).%e

Erklärung:
%b ist der Basisname.

In den runden Klammern ist der Suchen-und-Ersetze Ausdruck, wobei jeweils der Suchen- sowie der Ersetzepart
innerhalb von Anführungszeichen steht und Beide durch ein Komma getrennt sind.
Zwischen Klammer, Anführungszeichen sowie Komma dürfen Leerzeichen sein, die werden nicht beachtet.
Leerzeichen innerhalb der Anführungszeichen werden jedoch bei der Suche sowie beim Ersetzen beachtet.

. <Punkt) der Punkt ist der Trenner zwischen Dateinamen und Erweiterung.
%e ist die Dateierweiterung.

Wir suchen also nach einem Punkt "."
und ersetzen dies durch ein Leerzeichen " "


Beispiel: "Dateiname.dessen.Wörter.durch.einen.Punkt.getrennt.sind.txt"

Expression: %b( "." , " " ).%e
Ergebnis: "Dateiname dessen Wörter durch einen Punkt getrennt sind.txt"



So können wir z.B. auch nach Unterstrichen suchen:
Beispiel: "Eins_Zwei_-_abc_def.mp5"
Expression: %b("_"," ").%e
Ergebnis: "Eins Zwei - abc def.mp5"

rplr wrote:

...
This means that it will remain always on top while keeping
Siren's main window accessible for all operations.

Ok
i can resize the image preview bar
and resize the completion window too
and put it in this area.
This what i want (but rather on the top by the expression box)

Not bad at all.

This his only a little bit circumstantially for me.

An completion box like the image preview box
would have an more pro touch, i think.
And with this up and down arrows more practically.... hmm i.e. more obviously for an new user.


But it's all an kind of habit.
Was just an Idea, sorry.
Stefan

195

(10 replies, posted in How to ...)

.

Die "base" -Gruppe. Gültig für alle Dateien (d.h. für alle Erweiterungen)

Alle diese Paramter können in der Expression-Box eingegeben werden.
Diese Parameter sind Platzhalter und werden dann durch tatsächlichen Wert
der jeweils betroffenen Datei ersetzt.

   %f   : Voller Dateiname (das Selbe wie "%b.%e" ) ohne Pfad
   %b   : Der Basis-Name  (z.B. bei "autoexec.bat" ist das "autoexec")
   %e   : Die Namenerweiterung, Extension (z.B. bei "autoexec.bat" ist das "bat")
   
   %s   : Die Dateigröße in einer geeigneten Einheit (bei wenigen Byte in Byte, bei vielen Bytes in MB oder GB)
   %sb  : Die Dateigröße in Bytes
   %sk  : Die Dateigröße in Kilobytes
   %sm  : Die Dateigröße in Megabytes
   %sg  : Die Dateigröße in Gigabytes
   
   %F   : Der DOS-Name 8.3 bzw. 6~1.3 (ohne Pfad)
         (z.B. bei "Verknüpfung mit Internet Explorer.lnk" ist das "VERKNP~1.LNK")
   %B   : Der Basis-Name des DOS-Namen ("VERKNP~1")
   %E   : Die Erweiterung des DOS-Namens ("LNK")
   %a   : Die Datei Attribute (S,H,R,A)
   %y   : Der Datei Typ ( z.B. "Shortcut" beim dem DOS-Namensbeispiel)

  %p    Den Namen des Ordners in dem die Datei liegt einfügen
  %p2
  %p3    Den Namen des Über-Überordners in dem dieser Ordner liegt einfügen
  %p4   usw.
  %P    Den kompletten Pfad

   Beispiel: 31. Dezember 2006 14:25 Uhr und 33 Sekunden (20061231142533)
   %D   : Das aktuelle Datum mit Zeit => 20061231_142533
   %Dd  : Das aktuelle Datum => 20061231
   %Dt  : Die aktuelle Zeit =>142533
   %R   : Eine vierstellige pseudo Zufallsnummer

   %dm  : Das Änderungsdatum mit Zeit (Modification date and time)
   %dmd : Das Änderungsdatum (Modification date)
   %dmt : Die Zeit der Änderung (Modification time)
   
   %dc  : Das Erstellungsdatum mit Zeit (Creation date and time)
   %dcd : Das Erstellungsdatum (Creation date)
   %dct : Die Erstellungszeit (Creation time)
   
   %da  : Das Datum des letzten Zugriffes mit Zeit (last access date and time)
   %dad : Das Datum des letzten Zugriffes (last access date)
   %dat : Die Zeit des letzten Zugriffes (last access time)
   
   In der Siren Hilfe sind weiter solcher Gruppen beschrieben.
   Mit einem rechten Mausklick in die Expression-Box
   wird sogenante "Completion"- Fenster aufgerufen
   in dem man alle diese Parameter auswählen kann.
   Per Doppelklick werden diese in die Expression-Box übernommen.
   
Group of "audio" information:     mp2, mp3, mpc, ogg, wma, wav, au, kar, mid
Group of "id3v1 tag" information: mp2, mp3, mpc
Group of "audio tag" information: mp2, mp3, mpc, ogg, wma, wav, au, kar, mid
Group of "video" information:     avi, mpg, mpeg, asf, wmv
Group of "video tag" information: avi, asf, wmv
Group of "image" information:jpg, jpeg, gif, png, pcx, bmp, dib, ico, cur, tif, tiff, nef, cr2, crw, thm, orf, pef, mrw, raf, srf, dng
Group of "exif" information: jpg, jpeg, tif, tiff, nef, cr2, crw, thm, orf, pef, mrw, raf, srf, dng
Group of "iptc" information:      same file types as those of the "Exif" group.
Group of "document" information:  doc, xls, pot, pps, ppt, mpp, dot, pdf, html, htm, url


.



      --
   Für weitere Details lade dir  Siren einfach bei http://www.scarabee-software.net/en/siren.html  herunter und lese die Hilfe (in Englisch)
   Siren muss nicht installiert werden und speichert alle Einstellungen in ini-Dateien.  <Hier> kann man ein paar Bilder von Siren in Aktion sehen.
   Viel Spaß mit Siren, dem umfangreichen und portablen Umbenenner. Kostenlose Freeware. Immer auf dem USB-Stick dabei.

I think i want to store little RegEx or other goodies into the Favorites.

But i want insert this as an part, i.e. that should not overwrite the
expression i have currently written in the expression box.

So i could use this part for different other expressions too.
At the moment, if i insert an Favorite, the hole current ex is overwritten.

So i wanna suggest an check box in the favorite manager like "[] insert as part"
I want that this part would be insert where i have my cursor in the ex box.


What do you think?

197

(10 replies, posted in How to ...)

.

Datum und Zeit

Beispiel: 31.Dezember 2006 14:25 Uhr und 33 Sekunden (20061231142533)
   %D   : Das aktuelle Datum mit Zeit => 20061231_142533
   %Dd  : Das aktuelle Datum => 20061231
   %Dt  : Die aktuelle Zeit =>142533
   %R   : Eine vierstellige pseudo Zufallsnummer



   %dm  : Das Änderungsdatum mit Zeit (Modification date and time)
   %dmd : Das Änderungsdatum (Modification date)
   %dmt : Die Zeit der Änderung (Modification time)
   
   %dc  : Das Erstellungsdatum mit Zeit (Creation date and time)
   %dcd : Das Erstellungsdatum (Creation date)
   %dct : Die Erstellungszeit (Creation time)
   
   %da  : Das Datum des letzten Zugriffes mit Zeit (last access date and time)
   %dad : Das Datum des letzten Zugriffes (last access date)
   %dat : Die Zeit des letzten Zugriffes (last access time)
   

   #############


   Datumsausgabe formatieren
   Um das Datum zu formatieren muss man in der Version 1.90 noch mit einem Trick arbeiten:
   Dazu benutzen wir die Regular Expressions Suche: (s/suche/ersetze/)
   Siren benutzt die Boost RegEx-Engine: http://boost.org/libs/regex/doc/syntax_perl.html
   
   Beispiel: 29. Dezember 2006
   %Dd gibt 20061229 zurück.
   
   Wir suchen zwei Ziffer: \d\d oder \d{2}
   Das Ergebnis möchte ich in einer Gruppe haben => ( )
   Darauf können wir später darauf verweisen: $1
   
   Diese Suche führen wir vier mal aus: (\d{2})(\d{2})(\d{2})(\d{2})
   Wir suchen also immer zwei Ziffern aus 20061229.
   
   Wir finden (20)(06)(12)(29)
   
   Mit $n können wir auf die einzelnen Gruppen später verweisen:
   $1 gibt hier 20 zurück.
   $2 gibt hier 06 zurück.
   $3 gibt hier 12 zurück
   $4 gibt hier 29 zurück
   
   Somit können wir das Datum neu zusammen basteln:
   $4.$3.$1$2 => 19.12.2006
   $2-$3-$4 => 06-12-29
   
Das benutzen wir in Siren folgendermaßen:
Dateiname: * oder %b
Formatierung: (s/suche/ersetze/)
Dateierweiterung: .* oder .%e

Also * (s/suche/ersetze/).*

z.B.
   * %Dd(s/(\d{2})(\d{2})(\d{2})(\d{2})/$2-$3-$4/).* ==> Dateinamen 06-12-29.ext

Das sehen wir uns 'mal genauer an:
  * %Dd  ( s/  (\d{2})  (\d{2})  (\d{2})  (\d{2})  /  $2-$3-$4  /  )  .*


Zweites Beispiel:
   * %Dd(s/(\d{2})(\d{2})(\d{2})(\d{2})/$4.$2.$1$2/).* ==> Dateinamen 29.12.2006.ext
   

   #################

   
   Die Zeitausgabe formatieren
   Beispiel: 31.Dezember 2006 14:25 Uhr und 33 Sekunden (20061231_142533)
   
   %Dt gibt hier 142533 zurück.
   Die Zeit besteht aus 3 Teilen: 14 25 33 (StundeStundeMinuteMinuteSekundeSekunde)
   Wir suchen also diesmal 3 mal nach einer Zweiergruppe: (\d{2})(\d{2})(\d{2})
   
  Wir finden (14) (25) (33)
   $1 gibt hier 14 zurück.
   $2 gibt hier 25 zurück.
   $3 gibt hier 33 zurück.
   
   Jetzt können wir die Zeit formatieren:
   $1 Uhr $2 Minuten und $3 Sekunden ===> 14 Uhr 25 Minuten und 33 Sekunden



Das benutzen wir in Siren folgendermaßen:
Dateiname: * oder %b
Formatierung: (s/suche/ersetze/)
Dateierweiterung: .* oder .%e

Also * (s/suche/ersetze/).*

z.B.   
   * %Dt(s/(\d{2})(\d{2})(\d{2})/$1'$2min/).* ==> Dateinamen 14'25min.ext
   
   *  %Dt  (  s/  (\d{2})  (\d{2})  (\d{2})  /  $1 ' $2 min  /  )   .*



   ################

   
   Das könnte man auch kombinieren:
   Beispiel: 31.Dezember 2006 14:25 Uhr und 33 Sekunden (%D ==> 20061231_142533)
   Wir suchen als 4+3= 7 Zweiergruppen.
   Das Datum und die Zeit werden bei Siren mit einem _ Unterstrich getrennt.
   Wir suchen also: ZZ ZZ ZZ ZZ Unterstrich ZZ ZZ ZZ
   Wir finden (20) (06) (12) (31) _ (14) (25) (33)
   und können jetzt mit $1 bis $7 darauf zurückgreifen.
   
   (20) (06) (12) (31) (14) (25) (33)
    $1   $2   $3   $4   $5   $6   $7
   
Da der Unterstrich nicht in einer Gruppe gemerkt wurde, können wir auch nicht darauf verweisen.
Dies ist hier aber auch nicht nötig! Dies nur als Hinweis.

Das benutzen wir in Siren folgendermaßen:
Dateiname: * oder %b
Formatierung: (s/suche/ersetze/)
Dateierweiterung: .* oder .%e

Also * (s/suche/ersetze/).*

z.B.

   %D(s/(\d{2})(\d{2})(\d{2})(\d{2})_(\d{2})(\d{2})(\d{2})/$4.$3_$5'$6min/) ==> 31.12_14'25min


   %D  (  s  /  (\d{2})  (\d{2})  (\d{2})  (\d{2})  _  (\d{2})  (\d{2})  (\d{2})  /  $4 . $3 _ $5 ' $6min  /  )

   

   #################


Es geht aber auch ohne RegEx, indem wir Sirens sub string feature benutzen:

%D                                   => 20111230_142223
%D(7,2).%D(5,2).%D(1,4)    => 30.12.2011

Das bedeutet:
ab der siebten Stelle gib mir zwei Zeichen von "20111230_142223",
ab der fünften Stelle zwei Zeichen von "20111230_142223", und
ab der ersten Stelle gib mir vier Zeichen von "20111230_142223" zurück.


.

198

(10 replies, posted in How to ...)

.

%p    Den Namen des Ordners in dem die Datei liegt einfügen
Beispiel: "D:\MP5s\NEU\Beatles\Love\03 Beatles - New Song.mp5"
Expression: %p - %b.%e
Ergebnis: "Love - 03 Beatles - New Song.mp5"


%p3    Den Namen des Über-Überordners in dem dieser Ordner liegt einfügen
Beispiel: "D:\MP5s\NEU\Beatles\Love\03 Beatles - New Song.mp5"
Expression: %p3 - %b.%e
Ergebnis: "NEU - 03 Beatles - New Song.mp5"

Es geht auch %p, %p2, %p3, %p4 usw.
Beispiel: "D:\MP5s\NEU\Beatles\Love\03 Beatles - New Song.mp5"
Expression: %p3 [%p2 %up] - %b.%e
Ergebnis: "NEU [Beatles LOVE] 03 Beatles - New Song.mp5"



%P    Den kompletten Pfad einfügen
Unerlaubte Zeichen wie : und \ werden automatisch ersetzt.
Siehe "Options | Modifications | Replace invalid characters with"
um anzugeben mit welchem Zeichen unerlaute Zeichen ersetzt werden.

Beispiel: "D:\MP5s\NEU\Beatles\Love\03 Beatles - New Song.mp5"
Expression: %P - %b.%e
Ergebnis: "D__MP5s_NEU_Beatles_Love - 03 Beatles - New Song.mp5"




.


      --
   Für weitere Details lade dir  Siren einfach bei http://www.scarabee-software.net/en/siren.html  herunter und lese die Hilfe (in Englisch)
   Siren muss nicht installiert werden und speichert alle Einstellungen in ini-Dateien.  <Hier> kann man ein paar Bilder von Siren in Aktion sehen.
   Viel Spaß mit Siren, dem umfangreichen und portablen Umbenenner. Kostenlose Freeware. Immer auf dem USB-Stick dabei.

199

(10 replies, posted in How to ...)

Nummerierung:

Stellenanzahl, z.B. 1, 01, 001, 0001, einstellen über "Options | Numbers | Size"



%n        eine laufende Nummer in Reihenfolge der Auswahl (des Anklickens)

Beispiel: "Beatles - New Song.mp5"
Expression: %b (%n).%e
Ergebnis: "Beatles - New Song (01).mp5"



%ns        die Gesamtanzahl der ausgewählten Dateien

Beispiel: "Beatles - New Song.mp5"
Expression: %b (Lied %n von %ns).%e
Ergebnis: "Beatles - New Song (Lied 01 von 08).mp5"



%nc        immer Nummer 1, bei Namensgleichheit hochzählend

Beispiel:
"Beatles - Another Song.mp5"
"Beatles - New Song.mp5"
"Beatles - Old Song.mp5"
"Beatles - Other Song.mp5"
Expression: %b("old","New")%nc.%e
Ergebnis:
"Beatles - Another Song01.mp5"
"Beatles - New Song01.mp5"
"Beatles - New Song02.mp5"
"Beatles - Other Song01.mp5"



%ncs    erst bei gefundener Namensgleichheit mit 1 beginnent, zusätzliches _

Beispiel:
"Beatles - Another Song.mp5"
"Beatles - New Song.mp5"
"Beatles - Old Song.mp5"
"Beatles - Other Song.mp5"
Expression: %b("new","Old")%ncs.%e
Ergebnis:
"Beatles - Another Song.mp5"
"Beatles - New Song.mp5"
"Beatles - New Song _01.mp5"
"Beatles - Other Song.mp5"



%np        wie %n, beginnt jedoch beim nächsten Ordner wieder mit 1

          File                     %n        %np
          \Dir1\Img1.jpg     001       001
          \Dir1\Img2.jpg     002       002
          
          \Ordner2\Img3.jpg  003       001
          \Ordner2\Img4.jpg  004       002



%N        gibt eine Zahl aus dem Dateinamen zurück, (%N2 die zweite Zahl, usw.)

Beispiel: "03 Beatles - New Song.mp5"
Expression: %b - %N.%e
Ergebnis: "03 Beatles - New Song - 03.mp5"

Beispiel: "03 Beatles - New Song.mp5"
Expression: %b(4) - %N.%e
Ergebnis: "Beatles - New Song - 03.mp5"

Beispiel: "Beatles2006 - New Song.mp5"
Expression: %b("2006","") von %N.%e
Ergebnis: "Beatles - New Song von 2006.mp5"
Erklärung: hier Suche und Ersetze(Lösche) ich zusätzlich das 2006 von Beatles2006

Beispiel: "03Beatles2006 - New Song.mp5"
Expression: %N - %b("2006"," - Love") (%N2).%e
Ergebnis: "03 - Beatles - Love - New Song (2006).mp5"
Erklärung: hier Suche und Ersetze ich zusätzlich das 2006 von Beatles2006 durch Love


%NN        gibt Buchstaben zwischen den Zahlen zurück, (%NN2 die zweite Buchstabengruppe usw.)

Beispiel: "03 Beatles 2006 - New Song.mp5"
Expression: %NN%NN2.*
Ergebnis: "Beatles - New Song.mp5"


.

200

(10 replies, posted in How to ...)

Akzente entfernen:

Hiermit werden Aktzente wie z.B. 'é' , 'ü' , 'Á'...
aus dem Dateinamen entfernt.

Dazu wird das Zeichen mit Akzent gegen das
entsprechende ASCII Zeichen ausgetauscht.
'é' mit 'e',
'ü' mit 'u',
'Á' mit 'A' ...

Zum Beispiel: "Ébölie müller häuser.JPG":

      Expression                 Ergebnis
      %uf                              ÉBÖLIE MÜLLER HÄUSER.JPG
      %lf                               ébölie müller häuser.jpg
      %Uf                              Ébölie Müller Häuser.jpg
      %Lf                              Ébölie müller häuser.jpg
      
      %@f                             Ebolie muller hauser.JPG
      %@uf                           EBOLIE MULLER HAUSER.JPG
      %@Lf                           Ebolie muller hauser.jpg


.