ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: MikeBrice on March 19, 2021, 04:57:36 AM

Title: Windows 10 - File not found errors
Post by: MikeBrice on March 19, 2021, 04:57:36 AM
I am using Windows 10 on my desktop, all up to date. I have installed Exiftool V12.21 and ExifToolGUI V5.16.

I have a directory with a little over 300 sub-irectories which together contain a lttle over 1200 files.

I have built a small PHP script to invoke the ExifTool directly with explicit file names using the PHP exec() function, as shown below:

exec('E:\PHPtestingxiftoolgui\Exiftool.exe '."\\NAS03\NAS03_data\MediaWorld\Movies\The Trip/02 - Lenclume.avi",$output,$retval);

Everything is good with the exception of one directory containing 6 .avi files. For each of these files an error is generated by the exoftool process:

Error: File not found - //NAS03/NAS03_data/MediaWorld/Movies/The Trip/The Inn At Whitewell.avi

The ExifToolGUI does not report any errors when inspecting these files.

I have tried renaming the files, copying them to a different directory, all to no avail.

The only thing that may be relevant is that there appears to bo no metadata at all in these files as the GUI toool shows the following in the Metadata tab

ExifTool executed
No data

Is this a spurious error resulting from the total lack of metadata ?
Title: Re: Windows 10 - File not found errors
Post by: Phil Harvey on March 19, 2021, 07:48:27 AM
There is always something to report about a file, so there is no chance the ExifTool returns nothing if all tags are requested.

There are lots of peculiarities surrounding NAS filesystems on Windows.  My guess is that this is the source of the problem.

- Phil
Title: Re: Windows 10 - File not found errors
Post by: StarGeek on March 19, 2021, 11:44:19 AM
Have you tried running the command directlly on the command line rather than calling it from php?
Title: Re: Windows 10 - File not found errors
Post by: MikeBrice on March 23, 2021, 06:43:24 AM
Thanks for the feed back. I tried using the same command manually, same result:

E:\PHPtesting\exiftoolgui>Exiftool.exe "\\NAS03\NAS03_data\MediaWorld\Television\The Trip\The Trip [2010]/02 - Lenclume.avi"
Error: File not found - //NAS03/NAS03_data/MediaWorld/Television/The Trip/The Trip [2010]/02 - Lenclume.avi

I have attached an image of the explorer window showing the relevant files in their directory on the NAS., and the detail shown by the GUI tool.

I copied the file to the working directory, same result:

E:\PHPtesting\exiftoolgui>Exiftool.exe "02 - Lenclume.avi"
Error: File not found - 02 - Lenclume.avi

I still suspect that there is something about the content of the file that is the trigger for the displayed error.

Is there a simple way to 'add' some meta data to this file ?
Title: Re: Windows 10 - File not found errors
Post by: MikeBrice on March 23, 2021, 06:49:10 AM
I had a look to see what info Exploere presented, and there was something as ypu can see in the attached image files.