Page 1 of 1

selected file extention lowercase capitalization.

Posted: 17 Mar 2018 08:22
by drjs5x
selected file extention lowercase capitalization.

find later
selected files . how can
selected file extention lowercase capitalization.
example:
tEST1.TEST.AVI
tEST1.TEST2.AVI
tEST1.AVI
TEST2.AVI
tEST1.AVI
TEST2.avi
TESTdgdg2.avi

.................................. how can selected files convert small letters. to avi..
.avi .mp4 .jpg .gif etc..........
?????

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 09:16
by highend
If that is a question about how to lowercase extensions...

Code: Select all

    foreach($file, <get SelectedItemsNames |>, , "e") {
        if (exists($file) == 2) { continue; }
        renameitem(recase($file, "n", 1), $file);
    }
If not, look for getpathcomponent() and split things before rebuilding the name...

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 09:35
by drjs5x
THANKS for support. thanks for help.


my test.
result:
"SELECTED FILES EXTENTIONS TO SMALL LETTERS BATCH RENAME|rename2.ico|0" status "Processs sTART.........!";setting "BackgroundFileOps", 0;foreach($file, "<get SelectedItemsPathNames |>") {renameitem(recase($file, "n", 1), $file)};};status "All Batch Process Done!";

this %100 working at search mode and at Browse mode.

really thanks

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 12:05
by jupe
I may be misunderstanding but XY has renaming of extensions to lowercase built in, you can just use this menu item:

File | Rename Special | *.aaa

or this command ID: #136

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 13:53
by drjs5x
*.JPG *.JPEG 4 letter? works more 3 letters?
i made a button and tested with 1750 files.
2-3 seconds made no proplem.

thanks for new technique.
:appl:

xyplorer forum great. forum admins coders great.
:appl: :appl: :appl: :appl: :appl: :appl: :appl:

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 14:02
by jupe
drjs5x wrote:*.JPG *.JPEG 4 letter? works more 3 letters?
That would have been easy to test yourself without asking, but yes it works no matter the extension length, the caption is just an example of the intended results.

Your button could have just this as an action, if you were so inclined:

#136;

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 14:18
by drjs5x
rename '*.bbb', p; this dont work . but
#136; action button script great worked.
thanks that different method.
:appl:

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 14:35
by jupe
drjs5x wrote:rename '*.bbb', p; this dont work
Not sure where you got that pattern from, this is what I was talking about:
clip-18_03_2018a.png
clip-18_03_2018a.png (10.73 KiB) Viewed 1490 times

Re: selected file extention lowercase capitalization.

Posted: 17 Mar 2018 14:37
by drjs5x
great working very thanks
:appl: