Strange renaming error when processing JPG or TIF files in particular folders

Started by Nigel53, November 13, 2024, 07:54:57 AM

Previous topic - Next topic

Nigel53

I am using Exiftool to correct the date and time on some of my images, which are a mixture of .CR3, .TIF and .JPG file types. When I work in a temporary folder (D:\Temp\working), everything is fine for all file types, but in the folder where the originals live (D:\My Name\Pictures\DigitalCamera\yyyy\yyyy-mm-dd) only the .CR3 files work - the others invariably give "Error renaming file xxx.xxx". My OS is Windows 11, I am running Exiftool 13.02 (64 bit), the file protections are the same in all cases, I am running from a command prompt in the folder where the files are located, and the filenames are similar in each case (e.g. IMG_0123.CR3 and IMG_0123.jpg). I am at a loss to understand what might be causing this strange behaviour, and would welcome any suggestions.

Example of a command line that works:
exiftool -OffsetTime*=+1:00 -DaylightSavings=On -QuickTime:CreateDate-=1:00 -QuickTime:ModifyDate-=1:00 -TimeZone=+1:00 *.cr3

Example of a command line that fails:
exiftool -OffsetTime*=+1:00 -XMP:DateCreated-=1:00 -XMP:CreateDate-=1:00 *.jpg

Other similar command lines give the same behaviour.

Phil Harvey

The directory permissions are the same in both cases?  Also, is this a local or network drive?

- 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 ($).