Need to remove multiple suffixes from a lot of files in a Windows environment
Need a PowerShell Script or a way to remove the multiple suffixes to just one suffix.
I have a few hundred files with filename.dat.dat, filename.dat.BAK_YYYYMMDD.BAK_YYYYMMDD or such combinations. Need to have them just as Filename.dat