selected file extention lowercase capitalization.

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

selected file extention lowercase capitalization.

Post by drjs5x » 17 Mar 2018 08:22

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: 7651
Joined: 06 Feb 2011 00:33

Re: selected file extention lowercase capitalization.

Post by highend » 17 Mar 2018 09:16

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 or highend (at) web (dot) de

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

Re: selected file extention lowercase capitalization.

Post by drjs5x » 17 Mar 2018 09:35

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: 883
Joined: 20 Oct 2017 21:14
Location: 1809 x64

Re: selected file extention lowercase capitalization.

Post by jupe » 17 Mar 2018 12:05

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: 131
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: selected file extention lowercase capitalization.

Post by drjs5x » 17 Mar 2018 13:53

*.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: 883
Joined: 20 Oct 2017 21:14
Location: 1809 x64

Re: selected file extention lowercase capitalization.

Post by jupe » 17 Mar 2018 14:02

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: 131
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: selected file extention lowercase capitalization.

Post by drjs5x » 17 Mar 2018 14:18

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

jupe
Posts: 883
Joined: 20 Oct 2017 21:14
Location: 1809 x64

Re: selected file extention lowercase capitalization.

Post by jupe » 17 Mar 2018 14:35

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 162 times

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

Re: selected file extention lowercase capitalization.

Post by drjs5x » 17 Mar 2018 14:37

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

Post Reply