Truncate file-/foldername to <x> words

Discuss and share scripts and script files...
Post Reply
highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Truncate file-/foldername to <x> words

Post by highend »

A simple script (I need this very often) that truncates the name of a file / folder to the number of
words you select from a drop-down list.

Word separators are: space, dot, comma, semicolon, underscore, hyphen

So e.g. if you choose 3 from the drop-down and one of the selected items is a folder named

Code: Select all

The.Greatest.Truncation.English.MD.DL.720p.x264-MYSELF
Then it will be renamed to

Code: Select all

The Greatest Truncation
v0.1
Truncate item name.xys
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

Post Reply