Visual Basic 6 and Windows 7

Started by johnrcrellin, February 22, 2011, 10:47:08 AM

Previous topic - Next topic

johnrcrellin

I know - should I expect to get this working ? But ideally I do want to use ExifTool programatically in Vb6 or VBScript in Access.

The module "modEXIFTool.bas" looked just the job but CreateProcessA fails even if I turn UAC off temporarily and reading the CreateProcess documentation I'm not surprised in Windows 7.

Anyone managed to get this working in Windows 7 ?

I have Exiftool.exe set to "run as administrator"

John Crellin

Phil Harvey

There is a chance that someone here may be able to answer this, but I think you would have a greater chance in a visual basic forum.

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

johnrcrellin

I've got there - the answer I got to was to go back to basic DOS stuff and make the command line write a temp file and then parse that:

Shell("Cmd /c " & exifTool & " -s " & exifFile & " > " & tempfile, vbHide)

There is some more stuff in the module that doesn't seem to have dependent functions but to do with writing - which I don't want to do...

Thanks

... and now to tap into the undoubted power of ExifTool ! :)

John