But the environment variable still must be set. (Allowing \.exe' to be called from anywhere, any computer, and it just works. Interestingly, SET EXIFTOOL=".\exiftool", works. (Return the usage, of the stub, at least.) Could the stub exe check for the existence of exiftool before trying to call it? Instead of returning: Could EXIFTOOL be the directory containing the exiftool file, not the exiftool file itself? (Or create EXIFTOOLDIR?) (Because it's the stub.) Or, create '-usage' as an exiftool option? It's only the case of no arguments where the usual does not happen. Interestingly 'exiftool -ver' and 'exiftool -list' do the expected. Perhaps (stub) 'exiftool -usage' could do what it does (the stub), then try to invoke exiftool proper without arguments. What you probably want is what happens when exiftool.exe (non-stub) or 'perl exiftool' is run without arguments - exiftool usage. this makes sense, for the stub, but is probably not what you desire. There is one usage this does not cover, calling the stub with no arguments produces:Ĭan't open perl script "c:\perl\site\bin\exiftool": No such file or directory Could no arguments, '-h', '-help', and '/?' all print the usage. Could -h be modified to simply print out the usage as it currently does (with no envvars set), and append something like 'Currently set to:' (and continue with what -h already does). Even without, after the first invocation, the cache is present, and exiftool speeds up dramatically. of course, setting the environment variable globally, and having exiftool.exe in the path negates the need for this script. You might note that setting PAR_GLOBAL_TEMP will stop the par-USER directories from propagating everywhere. (And no par-user files.) But, of course, exiftoolgui fails for lack of. And in playing around I was re-reminded that running the perl version directly is MUCH faster. I have come across this thread because I'm got tired of seeing PAR-USER directories everywhere. For example, my Canon sw downloads as well as the manuals are all in E:\Canon. I have a mapped drive, E:, where I put everything I download.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |