selected file extention lowercase capitalization.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

selected file extention lowercase capitalization.

Post 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..........
?????
newbie or not...........

highend
Posts: 13277
Joined: 06 Feb 2011 00:33

Re: selected file extention lowercase capitalization.

Post 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...
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: selected file extention lowercase capitalization.

Post 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
newbie or not...........

jupe
Posts: 2758
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: selected file extention lowercase capitalization.

Post 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

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: selected file extention lowercase capitalization.

Post 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:
newbie or not...........

jupe
Posts: 2758
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: selected file extention lowercase capitalization.

Post 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;

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: selected file extention lowercase capitalization.

Post by drjs5x »

rename '*.bbb', p; this dont work . but
#136; action button script great worked.
thanks that different method.
:appl:
newbie or not...........

jupe
Posts: 2758
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: selected file extention lowercase capitalization.

Post 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 1487 times

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: selected file extention lowercase capitalization.

Post by drjs5x »

great working very thanks
:appl:
newbie or not...........

Post Reply