#1 2008-01-20 15:06

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

File_Name and File_Ext tags

Hi Denis.

I know (or imaging at least) one could use PascalScript for this issue
but for the easy, would you want to add two new "Meta Tags" (File_Ext and File_Name) ?

Be cause i didn't found some thing to add smtg like File_extension
I only found :BinarySign_Extension: which miss some extensions
(html and js) like you can see in my screenshot
where i use INSERT EXT as Prefix and add an back slash to move file separated by ext into sub folders:

ReNamer-add-Extension-2.png

For the completeness i suggest an new meta tag "File_Name" also, may be useful smt.

What do you think?


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#2 2008-01-20 23:57

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: File_Name and File_Ext tags

I've added File_FileName, File_BaseName and File_Extension meta tags. I think they are self-explanatory.

By the way, BinarySign_Extension uses an embedded list of known binary signatures, for binary files, that's why it can't detect extension of files like TXT, HTML, JS, PAS, etc - because they are all text files, not binary, thus, wouldn't have a common signature.

Offline

#3 2008-01-21 03:43

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: File_Name and File_Ext tags

At the moment, File_Extension tag will return extension with the dot.

Do you think that the dot should be skipped?  "extension" instead of ".extension" ?

Offline

#4 2008-01-21 12:14

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: File_Name and File_Ext tags

den4b wrote:

Do you think that the dot should be skipped?
"extension" instead of ".extension" ?

YES!
"extension"  only please.

Be cause someone may want to add the (original) ext somewhere in the file name too?!?

Like:
MyDescriptions001(Original :File_Extension:).bak
MyDescriptions001(Original txt).bak


(.extension is also bad for my Move-To-SubFolders-by_ext example)

So i think it's easier to add an dot ourself if we need it
rather to find an rule to include the original ext and then remove the leading dot.



Thank you very much.

Last edited by Stefan (2008-01-21 12:50)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#5 2008-01-21 23:29

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,367

Re: File_Name and File_Ext tags

Totally agree! Beta is updated to exclude the dot from the File_Extension tag.

Offline

Board footer

Powered by FluxBB