Author Topic: "Can't open perl script "-e"; No such file or directory" running ExifTool.exe  (Read 30344 times)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
I'm just confused because this is not what I observed.  In the zip file I uploaded, you will find that only "exiftool(-k).exe" was created when I ran exiftool on my system.

I don't know if this is related to the problem, but little inconsistencies like this can sometimes be the key to finding a solution.

I can't look at the process log right now, but I will when I get a chance.

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

kmmareek

  • Jr. Member
  • **
  • Posts: 14
I'm just confused because this is not what I observed.  In the zip file I uploaded, you will find that only "exiftool(-k).exe" was created when I ran exiftool on my system.

Yes, exiftol.exe(small) itself creates.

In exiftool.exe(small) is:

package main;

require PAR;
unshift @INC, \&PAR::find_par;
PAR->import(@par_args);

die qq(par.pl: Can't open perl script "$progname": No such file or directory\n)
    unless -e $progname;


It looks similar to our problem...

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Interesting.  Is this exactly the code that generates the error?  ie) Does it print out "par.pl:" at the start of the message?

If so, then we just need to figure out why $progname is "-e" instead of what it should be.

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

kmmareek

  • Jr. Member
  • **
  • Posts: 14
exiftool.exe under cmd:

c:\exiftool>exiftool
Can't open perl script "-e": No such file or directory

kmmareek

  • Jr. Member
  • **
  • Posts: 14
Something is already known?

rmarhi

  • Newbie
  • *
  • Posts: 1
FWIW I just recently had this same error message on Windows10. While troubleshooting another application that had stopped working I came across this issue - 'NUL file missing in windows'. I was led to a page to set the defaults for Null Service in Windows 10 <http://servicedefaults.com/10/null/> and this service reset/restart resolved the exif error.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Thanks for this solution!

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