Hey all!
I have a bunch of files in a folder and I need to set the correct file extensions for these files.
They actually use more than one extension. The file names consist of a prefix, a infix and a suffix. So it's like two file extensions one after another. The infix is the actual extension for the file type, while the last extension or the "suffix" is an appended temporary extension.
The file name scheme looks like this.
Code:
0001 IMG - Description [year].jpg.tmp
The appended ones needed to be removed in order for the right software to be associated to the file type. I used the REN command in CMD to remove it.
Code:
ren *.jpg.tmp *.jpg
After doing this the file names changed to something like this:
0001 IMG - Description [year].jpg.jpg
So although the files were now associated to the right software they had a double file extension (jpg). So I used the REN command once again.
After doing this most files were now set and ready, with only one file extension as I wanted. But some of them now don't have a file extension at all.
My question is, how do I add the file extension to those files who don't have any extension? They all have different names, so have do you "select" all those who don't have a file extension and set a new extension for these?