Running exiftool from a Directory Monitoring Program

Started by pwebb, September 26, 2012, 07:49:15 AM

Previous topic - Next topic

pwebb

Hi, Phil

exiftool is a graet program but when I execute this command from a command line it works perfectly, but when I execute it in a directory mointor program it does not seem to find the program.

Do I need to put it in a batch file?   (I am using Watch4Folder),


Cmd line
C:\VideoRenamer\exiftool.exe "-FileName<CreateDate" -d "C:\JUNGLEDISC\MARK-%Y%m%d_%H%M%S.%%e" "X:\DCIM\100EKZX5\*.MP4"


Monitor Program
Program: C:\VideoRenamer\exiftool "-FileName<CreateDate" -d "C:\JUNGLEDISC\MARK-%Y%m%d_%H%M%S.%%e" "X:\DCIM\100EKZX5\*.MP4" ,Executed at 25/09/2012 22:41:50

25/09/2012 22:41:50: File create event, file name: X:\DCIM\100EKZX5\100_0091.MP4
Program: C:\VideoRenamer\exiftool "-FileName<CreateDate" -d "C:\JUNGLEDISC\MARK-%Y%m%d_%H%M%S.%%e" "X:\DCIM\100EKZX5\*.MP4 ,E

Phil Harvey

I don't know how the monitor program parses its arguments.  It could be that it messes with the quoting.  Your work-around of putting the command in a .BAT file should fix the problem.

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