process image files without extension and rename

Started by a1s2d3f4, July 29, 2014, 07:07:14 PM

Previous topic - Next topic

a1s2d3f4

I have a bunch of files without extensions, some of which are jpeg (Exif) photo files. Still others are .mov files.

I wanted to use ExifTool (command line, of course) to run through each and every file in the directory of such files, and rename all the Exif jpegs to %Y%M%D_%H%M-%S.jpeg format, based on date picture was taken.

One command given in the help allows to process the files in the appropriate way, but only if they already have "jpeg" extension.

Phil Harvey

To process only files without an extension, use -ext "" or -ext . .

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

a1s2d3f4

Perfect - I tried it and it works.

exiftool.exe -ext "" -d %Y%m%d_%H%M-%S%%-c.jpeg "-filename<CreateDate" d:\temp\test\

Is there a similar way to process my extension-less MOV files?
If I do .mov instead of .jpeg above, it gives jpeg photos .mov extension...


Phil Harvey

You could do something like this:

exiftool.exe -ext "" -d %Y%m%d_%H%M-%S%%-c "-filename<$CreateDate.$filetype" d:\temp\test\

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

a1s2d3f4