Remove characters after file extension

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Remove characters after file extension Fri Jan 01, 2021 9:10 am • by markp
Hello

Happy New Year to Everyone

I have an issue where for some obscure reason when I moved the files in windows, a shed load of files where characters have been inserted after the file extension basically the file name is just a mess e.g.

0.1 Student Arrival Process-2.xlsx.vsdx-2-1-2

I would like the file name to be Student Arrival Process.xlsx (removing the characters before the name and after the file extension. I've been trying to work out how to do this using pattern matching but nothing works. I'm a novice, I know nothing about scripts etc. can anyone help because I have a 30,000 files like this to fix.

Would appreciate any help you can give. Thanks Mark
markp
 
Posts: 5
Joined: Wed Aug 08, 2018 7:01 am

Re: Remove characters after file extension Mon Jan 04, 2021 12:23 pm • by Mr_Noodle
Can you post what kind of patterns you've tried? How do you know what part of the name is the part you want to save?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support