Main Menu

Questions

Started by Polmax, January 08, 2012, 02:13:14 PM

Previous topic - Next topic

Polmax

So i installed exiftool because i needed it for college, we are using it with haskell.
My question is , well when i have exiftool -k.exe and i drop a file on it, it gives me information , what i want to know is, how can i change what he gives me, lets say i dont want File size to be there, how can i exclude that field ? ( read some pages about how to do it but i couldnt do it :/ )
Another thing we are doin with haskell is
system "ls -l > txt.txt"
this will execute the ls -l command (wich will give me a list of files on that directory ) and save it to a file called txt.txt
wich i can work with later.
if i use system "exiftool >txt.txt" the information on this new txt.txt is that documentation, or information you get when you open a exiftool.exe
so im supposing that the command system "exiftool >txt.txt"   will create a file with the information i get when i open the exiftool, wich leads to a question . is there a way for me that when i open exiftool it will give me info about a file ? a mp3 file for example named test.mp3

sry for my bad english :/

Phil Harvey

To avoid extracting the filename, add --filename to the command line (or in the application name, like this: -k in the "exiftool(-k --filename).exe").

To extract information from a file, and send it to a file, type "exiftool FILE > out.txt".

You should read the application documentation for more information.

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

Polmax

"To avoid extracting the filename, add --filename to the command line (or in the application name, like this: -k in the "exiftool(-k --filename).exe")."
Didnt understand that line.
I found out that it will be easier , basically i will execute exiftool on every file on my list
If i write exiftool c:\....test.mp3 ond command line will it open that file and give me info right? if so i just need to pass strings to this command for haskell
system "exiftool c:\....file a.mp3 >txt.txt"
system "exiftool c:\...file b.mp3>txt.txt"
etc...
The other problem i have is how to make exiftool show me the info i want ex: as i dont show file size or file name
Is there a way to select the fields i want ?

Phil Harvey

Quote from: Polmax on January 08, 2012, 02:57:53 PM
If i write exiftool c:\....test.mp3 ond command line will it open that file and give me info right?

Right.

Quoteif so i just need to pass strings to this command for haskell
system "exiftool c:\....file a.mp3 >txt.txt"
system "exiftool c:\...file b.mp3>txt.txt"
etc...
The other problem i have is how to make exiftool show me the info i want ex: as i dont show file size or file name
Is there a way to select the fields i want ?

system "exiftool c:\...file --filename --filesize > txt.txt"

This is all explained in the exiftool application documentation:  See the -TAG and --TAG options.  And read FAQ number 2.

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

Polmax

Oh yes it worked :P
Thank you very much