ExifTool Forum

ExifTool => Newbies => Topic started by: Alex Matiash on January 06, 2018, 04:15:13 AM

Title: Warning: Error opening file - /...
Post by: Alex Matiash on January 06, 2018, 04:15:13 AM
Hello. I faced strange problem, and can not find the answer.
I was using ExifTool for a while, but few days ago noticed, that my usual "scripts" stopped working, with the same reason for all "scripts"
C:\Program Files (x86)\Portable\ExifTool>exiftool.exe -@ args_mamiya.txt MMFC0061.tiff
Warning: Error opening file - /MMFC0061.MEF
    0 image files updated
    1 image files unchanged


args_mamiya.txt is very simple:
-tagsfromfile
%d/%8f.MEF
-overwrite_original
-MakerNotes=
-orientation<idf0:Orientation


I verified that ExifTool can read metadata from the corresponding raw file:

C:\Program Files (x86)\Portable\ExifTool>exiftool.exe -s -G1 MMFC0061.MEF
[ExifTool]      ExifToolVersion                 : 10.60
[System]        FileName                        : MMFC0061.MEF
[System]        Directory                       : .
[System]        FileSize                        : 35 MB
[System]        FileModifyDate                  : 2018:01:03 09:44:34+02:00
[System]        FileAccessDate                  : 2018:01:06 10:02:48+02:00
[System]        FileCreateDate                  : 2018:01:06 10:02:48+02:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : MEF
...


And the same problem is for all "scripts" I'm using.

Could anybody help me please?
Title: Re: Warning: Error opening file - /...
Post by: Hayo Baan on January 06, 2018, 06:03:54 AM
Did you already check you have write permission on those files and directories?
Title: Re: Warning: Error opening file - /...
Post by: Phil Harvey on January 06, 2018, 06:42:41 AM
You shouldn't have a "/" between %d and %f in your -tagsFromFile argument.

- Phil
Title: Re: Warning: Error opening file - /...
Post by: Alex Matiash on January 06, 2018, 07:27:34 AM
Quote from: Hayo Baan on January 06, 2018, 06:03:54 AM
Did you already check you have write permission on those files and directories?
Sure.

Quote from: Phil Harvey on January 06, 2018, 06:42:41 AM
You shouldn't have a "/" between %d and %f in your -tagsFromFile argument.
Oh, thank you! Don't have an idea where it came from.

But now I have next problem:
C:\Program Files (x86)\Portable\ExifTool>exiftool.exe -@ args_mamiya.txt MMFC0061.tiff
Warning: No writable tags set from MMFC0061.MEF
    0 image files updated
    1 image files unchanged


To be precise - I want to set Orientation tag from MEF. ExifTool says:

C:\Program Files (x86)\Portable\ExifTool>exiftool.exe -s -G1 MMFC0061.MEF
...
[IFD0]          Orientation                     : Rotate 90 CW


So it can read MEF.
Title: Re: Warning: Error opening file - /...
Post by: Phil Harvey on January 06, 2018, 10:01:34 AM
It should be spelt "ifd0", not "idf0" in your argfile.

- Phil
Title: Re: Warning: Error opening file - /...
Post by: Alex Matiash on January 08, 2018, 03:11:02 PM
Quote from: Phil Harvey on January 06, 2018, 10:01:34 AM
It should be spelt "ifd0", not "idf0" in your argfile.
Thank you! Sorry for stupid mistype :(