Exiftool from VB.

Started by steve3456, June 19, 2016, 07:56:46 AM

Previous topic - Next topic

steve3456

Can you help me please?

I am trying to write an Exif tag editor (for .jpg images).

Exiftools seems to show promise, but I need to access it through Visual Basic (to set tags).

I do not understand why the line

"exiftool -csv  d:\test\_DSC0214.JPG >d:\test\exifoutput.csv"

Works from the command prompt but.

'  Dim shellstring As String = "exiftool -csv  d:\test\_DSC0214.JPG >d:\test\exifoutput.csv" '

Shell(shellstring)

Does not work within Visual Basic, it does not give them error but it does not create file either.

Furthermore-

   Process.Start(shellstring)
produces  an error-
"win32exception was unhandled"
"the system cannot find the specified file"

Apparently this is something to do with me running a 64bit system

Windows Version   Microsoft Windows 10 Pro Build 10586 64-bit

Allthough none of the online fixes seem to work.

Visual Basic 2010 express.
Thanks,

Steve


Hayo Baan

Looks like the exiftool command can't be found from within VB. Try specifying its full path instead.
Hayo Baan – Photography
Web: www.hayobaan.nl