Main Menu

-stay_open

Started by jean, March 22, 2017, 03:49:45 AM

Previous topic - Next topic

jean

Hi Phil

I'm using -stay_open.
I create the arg txt file as UTF-8 (_wfopen_s(&fp, myfileName, L"wt+,css=UTF-8"))

Then i write commands to this text file, ending with -execute.

I get from exiftool the following error:
Error opening arg file <arg file name>

Is it possible, with -stay_open,  to use a UTF-8 text file with exiftool ?

(it works fine using in a ms-dos session: exiftool -@ myFileName.txt)

jean

Phil Harvey

Hi Jean,

It looks like the argfile doesn't exist after your wfopen command.  ExifTool is expecting UTF-8 text for the argfile.

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

jean

The file exists and is correctly filled.
Are you sure that exiftool can open/read a UTF8 txt file ?
jean

Hayo Baan

Quote from: jean on March 22, 2017, 12:06:30 PM
The file exists and is correctly filled.
Are you sure that exiftool can open/read a UTF8 txt file ?

Yes, absolutely sure :)

I'm guessing now that you have exiftool look in the wrong location. Try specifying the exact path of the file. Also, as a test, before running the exiftool command, show the content of the file. E.g., with the command type argfile (use cat on a unix system).
Hayo Baan – Photography
Web: www.hayobaan.nl