Deleting all spaces to shorten the name
I don't know if the result is alway what you expected .... but you can try it.

To shorten the file name quickly by delete all spaces in this name
use this
EXPRESSION:     %b(s/ //g).*

This  is   %b  ( s/ one space here  // g ).*


----
Or use this
EXPRESSION: %b(" ","") 

This  is   %b  ( " one space here " , "" ).*


----
Additional Tip:
Use an U between %  and   b     like  %Ub    to upper case every first letter   first   to  better see the single words in the result.


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

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

152

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

If you have the need to sort your files in Siren first
before you start modifying them, you could do this:

You can click on the header of each column to sort ascending (click twice to sort descending)
If this is not enough for you as an power user you could try to do this trick:



Step 1)
Use one of the Siren Features to rename an file .... but use this as preview only. (DO NOT CLICK to rename)
%sb                                                =  sort by size
%e                                                  = sort by extension
%b   first -> then Step 2 -> then %e  = sort by name first, then by extension
%dm                                               = sort by modification date
%dm{"%a"}                                    = sort by weekday name (Mo, Th...) of the modification date (needs Siren 2.0)
%dmt(1,2)                                       = sort by the hour of the last modification
%f(s/../,/g)                                      = sort by length of the file name
%R                                                 =  unsorted (randomly)
%N3                                               = sort by the third number in the file name
... and many more ...


Step 2)
now click on the header of the "Future Names" column  to sort for your need. (click twice to sort descending)

Step 3)
Now clear your Expression that you used for sorting. (the files are still in order you sorting them)

Step 4)
Wrote your "real" Expression.


Some hints:
* if you want to use an counter %n AND you have checked the files before.... just un-check and then re-check the selection to get the right "selecting order"
* for to sort by the second word in an file name use e.g. : %b[2] as Expression at step 1)
* for to sort by n-th char use an RegEx like:  %b(s/.{8}(.).+/\1/)
   (replace the digit   '8'   with the char position minus 1 of the char column you want to sort by.)
    EXAMPLE:   
                  Order  number 123D.txt
                  Order  number 124E.txt
                  Order  number 125A.txt
                  1234567890123456
                                 1
                  I have the need to sort at the 17-th char so i have to use the digit 16  ...  because of how my RegEx is composed.


If you use other tricks please share them with us ;-)


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

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

153

(2 replies, posted in Evolution requests)

Feature request "char count"

How can i find the amount of the chars in an file name /part ?

How about an new option like %Xc  which return the amount of the chars ?

example:  first test.exe
expr: %bc
Result: 10

expr: %fc
result. 14

expr: %bc[1]
result: 5


Needed in first for sorting file name by length in Siren
but maybe for other issues too.

Standard with 'U' modifier

EXAMPLE:         important PRIO1 document NEW.txt
EXPRESSION:   %Ub
RESULT:          Important Prio1 Document New.txt

This mofier change all chars to lower and then  makes the very first char of each word upper.

But i didn't want all the rest lower since i have important "remarks" in the file name which should keep as they are.
So i use an (long) RegEx to find the very first letter in each word and make them upper only, leaving the rest letters in the word as they are.


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


Extended with RegEx
(Note: this is an first quickly try, YMMV, could be not guarantee correct results always)

EXAMPLE:         important PRIO1 document NEW.txt
EXPRESSION:   %b(s/\ba/A/g)(s/\bb/B/g)(s/\bc/C/g)(s/\bd/D/g)(s/\be/E/g)(s/\bf/F/g)(s/\bg/G/g)(s/\bh/H/g)
(s/\bi/I/g)(s/\bj/J/g)(s/\bk/K/g)(s/\bl/L/g)(s/\bm/M/g)(s/\bn/N/g)(s/\bo/O/g)(s/\bp/P/g)(s/\bq/Q/g)(s/\br/R/g)
(s/\bs/S/g)(s/\bt/T/g)(s/\bu/U/g)(s/\bv/V/g)(s/\bw/W/g)(s/\bx/X/g)(s/\by/Y/g)(s/\bz/Z/g)


(Note: you have to join the three EXPRESSION lines  into one very long line)

Result :   Important PRIO1 Document NEW.txt    (as expected)


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


Extended with improved  RegEx
(Note: this is an first quickly try, YMMV, could be not guarantee correct results always)


To shorten the long EXPRESSION
i try to find an short RegEx like
%b( s/ \b ([a-z]) /  \U \1  /g)

EXPLANATION:
%b         Siren:     modifier to refer to the base of the file name
s/           RegEx:   search
\b           RegEx:  modifier to find the word boundary
( ...)       RegEx:   group that what you search for into an group you can back reference to later
[a-z]      RegEx:   the POSIX group of all lower case chars: a,b,c,d,e,f....x,y,z
/            RegEx:   set the 'replace with' apart from the 'search for'
\U          RegEx:   All (first char only, i think ) Chars Upper Case
\1          RegEx:   back reference to group number one
/g          RegEx:   search 'global'  instead of the first occurrence only



EXAMPLE:         important PRIO1 document NEW.txt
EXPRESSION:   %b(s/\b([a-z])/\U\1/g)
RESULT:           Important PRIO1 Document NEW.txt




--
Thanks to Boost for the fine Regular Expression Engine.  => http://scarabee.software.free.fr/forum/ … php?id=131
Thanks to rplr  for making such an great renamer.



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

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

Online

As mostly you can solve tricky problems with Siren in different ways. Here's an another one:

EXAMPLE:          foobar - the audio player [2007]
EXPRESSION:    %N - %Ub
RESULT:           2007 - Foobar - The Audio Player [2007]

EXPLANATION:
1)  %N   : a number contained in the base file name  a digit can indicate its position (1 by default)  [2007]
2)   Blank Underscore Blank                                                                                                      [2007 - ]
3)   %Ub  : The base name  AND   U : first character of each word upper case,                             [2007 - Foobar - The Audio Player [2007]]


BUT...
since you want the word 'foobar'  in lower case ....
we have to split the base name into two parts......
one part will be still lower case... and the second we modify to upper case.


From Siren help (press F1 in Siren):
Every variable can be postfixed by a "[]" modifier.
It will be split into an array of substrings following the  specified separator characters.
The usage is: "[ i, "sep" ]"

EXAMPLE:          foobar - the audio player [2007]
EXPRESSION:    %N - %b[1] - %Ub[2]
RESULT:           2007 - foobar - The Audio Player [2007]

EXPLANATION:
1)  %N   : a number contained in the base file name  a digit can indicate its position (1 by default)  [2007]
2)   Blank Underscore Blank                                                                                                      [2007 - ]
3)   %b[1]  :extracts the first element based on the default separator ('-')    "foobar"                     [2007 - foobar]
4)   Blank Underscore Blank                                                                                                      [2007 - foobar - ]
4)  %Ub[2]   :extracts the second part and make it upper case the first char                                 [2007 - foobar - The Audio Player[2007]]

This is like rplr told in the post above but i use the %N parameter.


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

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

Siren itself use the Boost.Regex engine.
Read more about here
Boost.Regex Perl Regular Expression Syntax and the format string


Here are some help in general about Regular Expressions:

Regular Expression HOWTO A.M. Kuchling

Perl Regular Expression Tutorial

A nice one sheet overview about the syntax (PDF file)

http://etext.lib.virginia.edu/services/ … regex.html

http://regular-expressions.info/reference.html

http://www.regxlib.com/Default.aspx

blogging community devoted to the topic of regular expressions

dead ==> Starmerj's Perl RegExp Crib Sheet

PDF: RegEx QuickSheet




Something in german:

Reguläre Ausdrücke in The Bat!     auf Deutsch

nicht wissenschaftlicher Workshop für Regular Expressions


Online test:
Excellent RegEx evaluator, useful for RegEx's that'll run in JavaScript.

An very minimalist online Ajax-based ASP.NET site
-

RR wrote:

Awesome people! How do I get to learn to be as good?!!
Thank you so much.

You are able to learn all you want on earth, it may take some time as i see with myself ;-)
Just play around, ask questions if you need, post solutions in the How to section...
Siren itself comes with an help, faq and some examples.... look in the '?'-menu.
Did you need some RegEx help ... i will post some links.

And in front off all: "Thank you very much for your feedback RR!"

RR wrote:

How to go about renaming this:
foobar.the.audio.player.9.4.3
to
foobar the audio player 9.4.3?

Not as good as above ... but can help maybe sometimes:



EXPRESSION:      %b[1,"."] %b[2,"."] %b[3,"."] %b[4,"."] %b[5,"."] %b[6,"."].%e


EXPLANATION:
%b[1,"."]           First part of the name till the first dot                  [foobar]
an blank                                                                                   [foobar ]
%b[2,"."]           Second part of the name till the next dot             [foobar the]
etc.




From the help:
Every variable can be postfixed by a "[]" modifier.
It will be split into an array of substrings following the
specified separator characters.
The usage is: "[ i , "sep" ]"

   i   : number of the substring to extract.
         If negative, the extraction is done from the end.
         If "0" (zero), it's equivalent to the complete string
         without the beginning and ending spaces.
   sep : list of separator characters, optional.
         If it is not specified, the list defined in
         "Options/Modifications" is used.



-----------------------------------------------
It's looking tricky but it's easy with Siren.

RR wrote:

Damn it, Stefan!! No way to determine how indebted I am to you!! ;-)

Thanks so much for sharing your valuable knowledge. Keep it up!

Thank you RR, but this is this time just the text from the help from Siren ;-)
I put it here only so people can see what to do with Siren.
So this thanks goes to our lovely rplr! big_smile

RR wrote:

How to go about renaming this:
foobar.the.audio.player.9.4.3
to
foobar the audio player 9.4.3?

Looks tricky but it's easy with Siren.

First attempt

ORIGINAL:      foobar.the.audio.player.9.4.3
EXPRESSION: %NN("."," ")%N.%N2.%e
RESULT:         foobar the audio player 9.4.3

EXPLANATION:
%NN      : the first non numeric string contained in the base file name                                             [foobar.the.audio.player]
("."," ")   : search in the result of %NN for dots and replace them with blank                                     [foobar the audio player]
%N        : a number contained in the base file name, a digit can indicate its position (1 by default)     [foobar the audio player 9]
.            : an dot                                                                                                                         [foobar the audio player 9.]
%N2       : the second number in the base file name                                                                       [foobar the audio player 9.4]
.            : an dot                                                                                                                         [foobar the audio player 9.4.]
%e        : the extension (Siren use here the  .3   as the extension because of the "last dot rule")       [foobar the audio player 9.4.3]



HTH?

161

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

rplr wrote:

Maybe an interesting idea would be to rename directly from TCMD using Siren's command line parameters: /A, /P, /R and /Q

Done here ==> Use siren command line for auto renaming in Total Commander


EDIT:
adjusted the link to actual forum path

Invert elements, delete some

If you want to exchange some part of an file name, maybe
  from "Song-Artist.mp3" to "Artist-Song.mp3"
  or from "Name,Given name.doc" to "Given name,Name.doc"
  then read this:

For example

   From:
   Song Title 1 - Singer - Site.mp3
   Title 2 - Singer.mp3

   To:
   Singer - Song Title 1.mp3
   Singer - Title 2.mp3


   Use the expression:
   %b[2] - %b[1].%e




How does it work ?

   The "[]" modifier "splits" the associated string in array elements
   following the characters specified in "Options/Modifications" (or given as second parameter to "[]").

   Each "substring" is reachable through its index.

   In this case, if '-' is one of the separators in "Options/Modifications":
   %b     gives "Song Title 1 - Singer - Site"
   %b[1]  gives "Song Title 1"
   %b[2]  gives "Singer"
   %b[3]  gives "Site"

   if the index is negative, the numbering start from the end:
   %b[-1] gives "Site"
   %b[-2] gives "Singer"
   %b[-3] gives "Song Title 1"

   %e, the file extension is "mp3"




   So, following the expression on "Song Title 1 - Singer - Site.mp3":
   %b[2]                     gives "Singer"                                  [part 2 of the original name]
   %b[2] -                   gives "Singer - "                              [we add an - sign]
   %b[2] - %b[1]         gives "Singer - Song Title 1"             [we add the first part from the original name]
   %b[2] - %b[1].        gives "Singer - Song Title 1."            [we add an dot to set the extension apart]
   %b[2] - %b[1].%e   gives "Singer - Song Title 1.mp3"      [we add the original extension by %e ,  an * sign would also fit]




----------------
For the example
"Name, Given name.doc" to "Given name, Name.doc"
add the comma sign to "Options/Modifications".
The standard character specified in "Options/Modifications" is an - sign.

But we can also add an second parameter to "[]" on the fly.

For from "Name, Given name.doc"
to "Given name, Name.doc"

use the expression %b[2,","], %b[1,","].*

The ","   in [2,","]   tells Siren to use the coma as  separator too.

So for  "Name,Given name.doc"
%b[2]  gives nothing because the standard splitting character is an - . And we didn't have them in the original name.
%b[2,","]                   gives    "Given name"
%b[2,","],                  gives    "Given name,"                       [we add an coma,  add an trailing blank if you want to set Given name and Name apart]
%b[2,","],%b[1,","]     gives   "Given name,Name"               [we add the first part of the original name]
%b[2,","],%b[1,","].    gives   "Given name,Name."              [we add an dot]
%b[2,","],%b[1,","].*  gives   "Given name,Name.doc"         [we add the original extension]




   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.    <Here> you can see some screen shots of Siren.

Extract only the beginning of a string

For example we have some notice from our job and want give them away... but don't want let them know when we wrote the notices.

  From:
   Notice-1_2007.03.14.txt
   Notice-2_2007.03.17.txt
   Notice-3_2007.04.21.txt
   
   To:
   Notice-1.txt
   Notice-2.txt
   Notice-3.txt


    
     That's easy.
   
        Just use
     %b(1,8).*  [that mean the chars from 1 to 8]
   

       12345678
       Notice-1
_2007.03.14.txt    
    
   
Tip:
     You can use an trick in Siren to count the chars you need at easy:
     1. Hold the Shift-Key and click on the desired file name with the right mouse button. This pastes the current file name into the expression box.
         2. Place your cursor in front of the last char you want to keep
         3. Press Ctrl+P to displays the current cursor position in the status bar.

     [Press Ctrl+Z  -while you are in the expression box- to set the expression box back into the last state]







But what is if you can't count the chars because the lenght differs?    
   For example we have this file names and don't want the trailing numbers any more:
        
   From:
   A0B1C2DE_0201.jpg
   A1B#0302.gif

   To:
   A0B1C2DE.jpg
   A1B.gif

   Use the expression:
   %b(1,-5).%e



How does it work ?
   As we previously saw, the "()" modifier permits to define a start of extraction relative to the end of a string.
   The problem, here, is slightly different because this time it's the number of characters that must be relative to the length of the string.
   If you give to "number of characters" (2nd parameter) a negative value, the position of the last extracted character will be computed this way:
   length of the string minus the absolute value of the parameter.



   In our case, "%b" is:
   "A0B1C2DE_0201" so 13 characters
   "A1B#0302"          so   8 characters

   %b(1,-5) on "A0B1C2DE_0201" will be equivalent to:
   13 - 5 so 8 characters starting at position 1 gives "A0B1C2DE"

   %b(1,-5) on "A1B#0302" will be equivalent to:
   8 - 5 so 3 characters starting at position 1 gives "A1B"

   %e is the file extension



   So, following the expression for "A1B#0302.gif":
   %b                gives "A1B#0302"   [this is the hole base name without the extension]
   %b(1,-5)        gives "A1B"            [here we get the base name whit the last 5 chars cut off]
   %b(1,-5).       gives "A1B."           [we add an dot to set the extension apart]
   %b(1,-5).%e  gives "A1B.gif"        [at last we add the original expression 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.

164

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

Extract only the end of a string




   From:
   A0B1C2DE_0201.jpg
   A1B#0302.gif

   To:
   0201.jpg
   0302.gif

   Use the expression:
   %f(-8)





How does it work ?
   The "()" modifier permits the extraction of a part of the string it is associated to.
     Its first parameter is the starting position of this extraction,
     an optional second parameter specifies the number of characters to extract. [e.g. %f(1,4)]
     If it's not given, the extraction is done until the end.


Which value to choose as starting position ?
   It depends on the file we examine.

     10 would be the starting position for the first

   1234567890
   A0B1C2DE_0
201.jpg
   
   
     and 5 would be the starting position for the second ...

   12345
   A1B#0
302.gif


In fact, we only need the last 8 characters.
     If Siren could provide us such an feature that would help us a lot!

    
It would be interesting to specify
     that the number of the first character to extract
     is relative to the end and not the beginning of the string.
    
     Siren manages this with "negative" numbers.
   For example, with "ABCDEF":
   %b(2,1)  gives "B" : positive start, so relative to the beginning
   %b(-2,1) gives "E" : negative start, so relative to the end

   More clearly, -8 "alone" will specify: "the 8 last characters"


Let's test this:
   %f is the full file name

   So, following the expression for "A1B#0302.gif":
   %f     gives "A1B#0302.gif"
   %f(-8) gives "0302.gif"

   And for A0B1C2DE_0201.jpg
   %f     gives   "A0B1C2DE_0201.jpg"
   %f(-8) gives   "0201.jpg"


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

Replace the '.' (dots) with ' ' (spaces)



   From:
   My.preferred.movie.avi

   To:
   My preferred movie.avi

   Use the expression:
   %b("."," ").%e



   How does it work ?
   Here, we use the replacement modifier with two parameters, the string to replace and the replacement string.
   We want to substitute all the '.' with ' ',
   so the first will be "." and the second " "
    
   We apply this modifier on "%b" which is the base name (file name without extension).
   Applying it on "%f" (full name), we would have replaced the '.' just before the extension too.

   %e, the file extension is "avi"

   So, following the expression:
   %b                  gives "My.preferred.movie"         [this is the original name without the extension]
   %b("."," ")       gives "My preferred movie"         [we have replaced the dots with blanks. Because of the 'b' we work on the 'base name' only]
   %b("."," ").      gives "My preferred movie."        [we add an dot to the base name to set the extension apart]
   %b("."," ").%e gives "My preferred movie.avi"    [we add now the original extension 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.

Change the case (uppercase/lowercase)

From:
   SONG TITLE.MP3

   To:
   Song title.mp3

   Use the expression:
   %Lf

   How does it work ?
   Between the character '%' and the "name" of the variable you can add a case modifier (upper/lower).
   It only modifies the string it is associated to.
   Four exist. Among them: 'L' sets the first character uppercase and the rest lowercase.
   %f represents the full name of the file.

   So, following the expression:
   %f  gives "SONG TITLE.MP3"
   %Lf gives "Song title.mp3"
   
   -  -  -  -  -
   BTW:
   %lf gives "song title.mp3"
   %Uf give "Song Title.mp3"
   %uf gives "SONG TITLE.MP3" (has no effect in this case sinse the file name is upper case already)
   


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

Rename an image with the date and time it has been taken

From:
   IMG_3975.JPG taken the 09/09/2003 at 21h47m58s
   IMG_3981.JPG taken the 09/09/2003 at 21h49m35s

   To:
   Planet_Mars_20030909_214758.jpg
   Planet_Mars_20030909_214935.jpg

   Use the expression:
   Planet_Mars_%Xdo.jpg

   How does it work ?
   Most part of digital cameras adds in the image many data
   concerning the shot. Among those, several dates with one at which
   the image was taken.
   Siren extracts this information and makes it directly usable in
   an expression through the variable: %Xdo (eXif DatetimeOriginal)
   By default it follows the format: YYYYMMDD_HHMMSS

   So, following the expression for "IMG_3975.JPG":
   Planet_Mars_         gives "Planet_Mars_"
   Planet_Mars_%Xdo     gives "Planet_Mars_20030909_214758"
   Planet_Mars_%Xdo.jpg gives "Planet_Mars_20030909_214758.jpg"

   And if images were taken in the same second ?
   With the above expression some "future names" will be identical,
   therefore an error will appear during the renaming.
   The variables "%nc" and "%ncs" give a unique value avoiding
   name "collisions".
   Use an expression like: Planet_Mars_%Xdo%ncs.jpg



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

168

(3 replies, posted in Comments)

Hi RR, welcome.
Nice to have you a board big_smile
In the "How To" -Forum you should find some examples, some are in  german, but one can guess the meaning by study the expressions, thought.

169

(6 replies, posted in Evolution requests)

rplr wrote:

You mean:
for each file,

Yes.. but maybe not for each file discrete but as, hmm, kind of an array?
Would not be as slow as each single file alone.

rplr wrote:

call an external program,
"give" him some specific info,
catch a returned string and finally rename the file with it ?

Yes, exactly.


- Just i and my ideas :-(  -

I meant this for guys and gals who are able to wrote an script with VB or C or AutoHotkey e.t.c. pp.

Perhaps we can extend the features  of Siren with such kind of plugins?
For special purposes.
Which you don't want to include in the main app.


----
EDIT:
As addition or instead ... what about a new feature like this...

1. user select some files
2. user press new button "Edit in editor"

3. Siren export the file names to %tmp%\sirenXYZ123.txt
... and shows an "please wait" -dialog

4. Siren starts the editor the user sets in the options ...
... or the windows default... with %tmp%\sirenXYZ123.txt   as parameter.

5. Siren waits ---- till the user is finished and had saved the modified %tmp%\sirenXYZ123.txt

6. either Siren detects that the %tmp%\sirenXYZ123.txt  time stamp is altered ....
...or the user have to press an [OK]-button in the "wait" dialog

7. Siren re-reads the %tmp%\sirenXYZ123.txt  and show this line per line as future names.
7b Siren deletes %tmp%\sirenXYZ123.txt

8. over to the user....

170

(6 replies, posted in Evolution requests)

I don't know if i can make myself clear or how hard is this to code...

...but could Siren execute the code of an scripting language
and execute this for all the selected files and rename this file like the code says?

I think therefor Siren must provide some keywords like
@b for basename
@e for extension
@p for the path
which we can use in the code as variables.

In the code i would work with this variables
var = split(@b, " ")
...

and give my result back to Siren which display my result as the future name.


Well, don't know if this is possible or not ,.... just an idea for later use maybe.

Just for the record... an another feature wish: Exception list for change case

I like to exclude some terms from being renamed by change case actions.

f.ex. file:
project-company_xYx-topic_2-FINISEHD.vbs

I like to  upper case first character of each word
%Ub.*
Project-Company_Xyx-Topic_2-Finished.vbs


But i like to leave the company name xYx  and our keyword FINISHED as they are:
%U("exclude.txt")b.*
Project-Company_xYx-Topic_2-FINISEHD.vbs

There i would love that Siren checks an exclude list (exclude.txt) and don't case change the name found in this list.

Please let the user decide what he wants more; quickly executing of the renaming or use of an exclude list.

Maybe this exclude.txt -file can have an hard coded name and can/should be accessed by an parameter instead of an explicit file name.
i.e. f.ex. by %Uxb  instead   of %U("my_exlist.txt")b
Or maybe by an parameter in the option menu: "[ ] Use excluding for case change"



An work around would be %Ub("xyx","xYx")("Finished","FINISHED").*
but for renaming a large MP3 list where i would prevent e.g. 'ft' and 'ABBA' and 'AC-DC' and 'for', 'and', etc. from case change this would be to complicated.


.

Ahh, 'Attributes Changer' was what i am looking for the last hour. I remember there was such an tool, but didn't remind the name.
Yes, AC can shift the date and time relative  too: ""Use relative adjustments if you like to apply date and time offsets to file objects.""

Hi dgbear, welcome.
May i give an hint rplr?

If you don't mind, ther's an addin for Total Commander which do the trick, 'ReDate' at http://thehacker.host.sk/redate/
The source code for Delphi 6 is also available there.
Picture: http://thehacker.host.sk/redate/redatescreenshot.png

Then there is Flexible Renamer at http://hp.vector.co.jp/authors/VA014830 … /FlexRena/
which can do all one could want to do with time stamps.


   --
   For all other renaming issues just download Siren at http://www.scarabee-software.net/en/siren.html
   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 tuatara, welcome.

tuatara wrote:

One thing - it seems to be missing the ID3 tag for CD number.

Is there an tag for CD number?
I didn't know this. I know there could be a lot of tags in the ID3v2 tags but not all are supported right now.




Right now you could do an work around:
tag your CD number e.g. as comment %Ac or maybe as

   %Ak  : the track (text)
   %Ap  : the composer
   %Ao  : the original artist
   %AC  : the copyright
   %Au  : the URL
   %Ae  : encoded by
   %mc  : the id3v1 tag comment


Then you can rename your files with the expression:   %Ac-%AT %At

   %Ac  : the comment
   %AT  : the track number
   %At  : the title


would this help?

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

   In Siren press F1 for the help with all available tags
   or/and right click in the expression field for the completion window from where you can insert tags by double click.

   Enjoy Siren, the powerfully portable freeware renamer.

rplr wrote:

Hello,

As an expression can contain many regex and as "match" and "not match" can both be interesting results i am not sure to understand.Thanks

> and as "match" and "not match" can both be interesting results

Yes, you're right!
But right now i have to "search" all the files in the list view to see what's match and what's not.
So i want to suggest that those lines... where a file name are altered (match)... become an other color.
Or an new to implemented column get an check box in that lines where the names are modified.

The other lines ... where the file names are not modified ... would stay as bevor... no color ... no check mark.


e.g.
f.ex.     %b("o","O",,,1)

Old Name                   New Name                   Modified?
File Name one.txt        File Name One.txt         x
File Name two.txt        File Name twO.txt          x
File Name three.txt      File Name three.txt
File Name four.txt       File Name fOur.txt          x
File Name five.txt      File Name five.txt
File Name six.txt      File Name six.txt



My suggestion is just to see the names where the expression match more easier.
With the extra "Modified?"-column we can even sort to see all match together.

O.K., just brain storming.