ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: nina on April 04, 2012, 05:12:54 AM

Title: Compatibility from W7 to Windows XP
Post by: nina on April 04, 2012, 05:12:54 AM
Hello,
I ve been writing my commands under W7 and it works fine.
Commands are to rename and sort pictures into folders while extracting metadatas :

exiftool -DateTimeOriginal>DateTimeOriginal -overwrite_original ..\TEMP
exiftool -CreateDate>DateTimeOriginal -overwrite_original ..\TEMP
exiftool -L -d %%d%%m%%Y "-FileName<${DateTimeOriginal}_${XPSubject}%%-c.%%%e" ..\TEMP
exiftool -L -T -Title -DateTimeOriginal -Make -Subject -Artist -XPSubject -Filename -Number -GPSLongitude -GPSLatitude ..\TEMP > ..\Extraction.txt
exiftool -k "-Directory<../Releves/${Title}/${Subject}" ..\TEMP

Now, i'm trying to launch it with a W XP computer and it doesn't work anymore so maybe it is just a compatibility issue (or somethingelse?)
Thanks a lot for your great job Phil and Bogdan, so helpful!!

nina

Title: Re: Compatibility from W7 to Windows XP
Post by: Phil Harvey on April 04, 2012, 07:17:48 AM
The application is bundled and tested on an XP system, so there should definitely be no problems.

If you are more specific than "it doesn't work anymore" I may be able to help.

Occasionally people have reported corrupted installations, so you might want to follow the Windows Uninstalling (https://exiftool.org/install.html#Windows) instructions then re-install.

- Phil
Title: Re: Compatibility from W7 to Windows XP
Post by: nina on April 04, 2012, 08:05:08 AM
Hi Phil, thank you for your answer.
Actually, ExifTool.exe can be opened without problems but when I launch the command (I wrote it in
Title: Re: Compatibility from W7 to Windows XP
Post by: nina on April 04, 2012, 08:08:17 AM
... in a .bat file), the black windows close immediately without any error message. Maybe its due to the admisnitrator rights that I lost in the XP computer and not from an error in the command...
Title: Re: Compatibility from W7 to Windows XP
Post by: Phil Harvey on April 04, 2012, 08:38:26 AM
The window will close automatically unless you use the -k option.

- Phil
Title: Re: Compatibility from W7 to Windows XP
Post by: nina on April 04, 2012, 09:38:04 AM
Finally, the error occurs because UNC paths are not supported and my command was on a commom network.
So, you were right, it doesn't come from a compatibility problem. :-)
Title: Re: Compatibility from W7 to Windows XP
Post by: Phil Harvey on April 04, 2012, 09:56:46 AM
UNC paths should be supported.  If it doesn't work for you then together we may be able to fix this.  Could you give me an example of a simple command that doesn't work with a UNC path, and post any messages given by exiftool?  Thanks.

For reference, there was an old thread about this (https://exiftool.org/forum/index.php/topic,2927.0.html), but I don't know if the problem was ever solved.

- Phil
Title: Re: Compatibility from W7 to Windows XP
Post by: nina on April 04, 2012, 11:18:25 AM
I tried this :
exiftool -k -T -Title -DateTimeOriginal -Subject -Artist TEMP > extraction.txt
The TEMP folder path is : \\Network\public\Mystation\Photographies\TEMP
and Exiftool says, before executing anything : CMD.EXE was started with the path as the current directory. UNC paths are not supported. Using the default directory Windows. and he tries to execute the command from c:/windows
I don't know if you can help from this information but thank for your interest anyway.

Nina
Title: Re: Compatibility from W7 to Windows XP
Post by: Phil Harvey on April 04, 2012, 11:39:28 AM
Hi Nina,

Thanks for the details.  So the problem seems to be that the exiftool package is running from a TEMP directory on a network drive.

You should be able to work around this by changing it to a local directory by setting the PAR_GLOBAL_TEMP environment variable (http://search.cpan.org/~smueller/PAR-1.002/lib/PAR/Environment.pod) to affect exiftool only, or TEMP (and maybe HOMEDRIVE too) to change the temporary directory for all applications.

- Phil
Title: Re: Compatibility from W7 to Windows XP
Post by: nina on April 04, 2012, 12:09:19 PM
What do you mean by a TEMP directory? I just called my folder TEMP because it is used just a few minutes before moving pics in an other folder.
So, do I need to change the PAR_GLOBAL_TEMP in all computers using this command from the network?

Nina
Title: Re: Compatibility from W7 to Windows XP
Post by: Phil Harvey on April 04, 2012, 01:38:59 PM
Hi Nina,

Sorry, I misunderstood.  I thought we were talking about the TEMP environment variable.  But re-reading your post I see you weren't.

So if I understand correctly now, the problem is that CMD.EXE doesn't allow you to set a UNC path as the current directory.  Who is setting the current directory?  Are you running exiftool from a batch file, or typing "cd \\Network\public\Mystation\Photographies" on the command line?  I would try not changing current directories to the network directory, and instead passing the full paths to exiftool:

cd \
exiftool -k -T -Title -DateTimeOriginal -Subject -Artist \\Network\public\Mystation\Photographies\TEMP >
\\Network\public\Mystation\Photographies\extraction.txt


- Phil