Unable to shrink multi spaces to single one while renaming and avoid name collisions using script

Discuss and share scripts and script files...
jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Unable to shrink multi spaces to single one while renaming and avoid name collisions using script

Post by jupe »

Well instead of just waiting you could attempt to script it yourself, anyway I have cobbled a script together, it may not be the most efficient way, and I only quickly tested it once, but see how you go with it...

2025-07-15_085703.png
2025-07-15_085703.png (9.16 KiB) Viewed 4453 times

edit: Since you have decided to create new topics whinging about MTP I assume you probably already have seen the script that was written for free at your request, and are using it, and just decided to abandon the topic (again!) and not bother even acknowledging it, but if not, it's too late now you missed it.

shuklaharshit75
Posts: 42
Joined: 10 Aug 2024 10:12

Re: Unable to shrink multi spaces to single one while renaming and avoid name collisions using script

Post by shuklaharshit75 »

Code: Select all

rename s, "-._[]({})%,`*~> ", , , 8; rename r, "\s+ >  ", , , 8;; rename r, "\s+(\.[^.]+?$|$) > $1", , , 8; #139; #126; #113;

Locked