if contain "word or symbol" rename selected file.

Discuss and share scripts and script files...
Post Reply
drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

if contain "word or symbol" rename selected file.

Post by drjs5x »

hi dear masters.

if contain "word or symbol" rename selected file else nothing.
example

if selected file example_tested.iso no rename
if selected file example_35435.iso rename *_tested.iso result example_35435_tested.iso

if contain "tested" word rename selected file else nothing.
thanks for all helps .
newbie or not...........

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

Re: if contain "word or symbol" rename selected file.

Post by highend »

Use script commands strpos(), regexmatches() or comparisions
Like, LikeI, UnLike, UnLikeI to check if the string contains / not contains
what you want and rename it...
One of my scripts helped you out? Please donate via Paypal

Post Reply