Limits on the commandline

Started by efry, February 03, 2011, 03:45:23 PM

Previous topic - Next topic

efry

Which limitations (if any) are there on the length of the commandline?

In my application there seems to be a failure, if the length of the commandline exeeds about 24200 characters, but it may be the application (written in VisualBasic) which causes the problem.

I have also tried to call ExifTool from a .bat-file, but also there it seems, that a very long commandline results in an error.

Is there a limitation on the number of files, which can be processed in a call to ExifTool?

BogdanH

Hi,

It's not Exiftool that limits that size (length).. it's OS. See here:
http://blogs.msdn.com/b/oldnewthing/archive/2003/12/10/56028.aspx

Hope this helps.

Bogdan

Phil Harvey

Thanks Bogdan,

Yes, there is a limit with the Windows cmd shell, but not with Mac or Linux shells.

The -@ option may be used to get around this.

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