views:

35

answers:

1

In Windows, what is the maximum length of a command line string? Meaning if I specify a program which takes arguments on the command line such as abc.exe -name=abc

A simple console application I wrote takes parameters via command line and I want to know what is the maximum allowable amount.

+4  A: 

"On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters." source: http://support.microsoft.com/kb/830473

sunetos