Compatibility from W7 to Windows XP

Started by nina, April 04, 2012, 05:12:54 AM

Previous topic - Next topic

nina

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


Phil Harvey

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 instructions then re-install.

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

nina

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

nina

... 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...

Phil Harvey

The window will close automatically unless you use the -k option.

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

nina

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. :-)

Phil Harvey

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, but I don't know if the problem was ever solved.

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

nina

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

Phil Harvey

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 to affect exiftool only, or TEMP (and maybe HOMEDRIVE too) to change the temporary directory for all applications.

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

nina

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

Phil Harvey

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