Page 1 of 1

Unable to capitalise first letters of "a an the of"

Posted: 15 Jul 2025 21:50
by shuklaharshit75
I want to rename

Code: Select all

A a an an the the of dark of night.txt
to

Code: Select all

A A An An The The Of Dark Of Night.txt

but this script doesnt work.

Code: Select all

rename s, "-._[]()%,`*~> ", , , 8; rename r, "\s+ >  ", , , 8;; rename r, "\s+(\.[^.]+?$|$) > $1", , , 8; #139; #128; #126; #113;
please provide complete working script.