ExifTool Forum

ExifTool => Newbies => Topic started by: kyler1983 on December 24, 2013, 10:53:14 AM

Title: Keep receiving error: Error opening directory > File not foud: out.csv
Post by: kyler1983 on December 24, 2013, 10:53:14 AM
I am using Microsoft Visual Basic 2010 express. Below is the code I am using to access the command prompt. In the command window I keep getting the same error. I have tried to separately double quote special character ">" using the CHR(34). I have also tried to put double quotes on the directory and file output field. Regardless of what I have done I keep getting the same error below. Please help! :

Error opening directory  >
File not foud: out.csv


Process.Start("C:\PictureOrganizer\PictureOrganizer\Exif\Exiftool(-k).exe", "-csv -r C:\PictureOrganizer\PictureOrganizer\Exif\Temp\  > out.csv")

Title: Re: Keep receiving error: Error opening directory > File not foud: out.csv
Post by: Phil Harvey on December 24, 2013, 12:27:11 PM
It seems as if redirection does not work the way your are doing it.  Perhaps there is a way to do this by running exiftool through cmd.exe, but I don't know the cmd.exe command-line syntax.

It is possible, to do this with the -W, but it is a bit sneaky:

exiftool -csv -W+! out.csv -r C:\PictureOrganizer\PictureOrganizer\Exif\Temp\

- Phil
Title: Re: Keep receiving error: Error opening directory > File not foud: out.csv
Post by: kyler1983 on December 24, 2013, 02:26:20 PM
Thanks for the quick reply Phil. When I tried to add the -W it gave me an error saying that you can not use the -W function when using -CSV. I think I am going to go a different route. I have noticed that exporting to a .txt file works every time.
Title: Re: Keep receiving error: Error opening directory > File not foud: out.csv
Post by: Phil Harvey on December 24, 2013, 04:27:28 PM
Right, sorry I forgot about this limitation of -W.  Glad you found an alternative.

- Phil