Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Maximum Command Line Length

80 views
Skip to first unread message

Frank

unread,
Oct 30, 2002, 8:23:07 PM10/30/02
to
It's been mentioned here several times that the length of a command line is
limited to about 2047 characters. Actually 2kb (2048) is the precise figure,
which includes the CR/LF at the end.

While running Windows XP's CMD.EXE on an NT4 server I discovered that it's
command line length is four times that of CMD.EXE from Windows NT and Windows
2000; its limitation is exactly 8kb (8192) including the CR/LF. This may be
good news for those of you who were having trouble with the 2k limit. Windows
XP's CMD.EXE functions very nicely on Windows NT4 and I believe it runs just
as well on Windows 2000.

Frank

Walter Briscoe

unread,
Oct 31, 2002, 2:53:03 AM10/31/02
to
In message <01c2807c$21a4e570$0125250a@ivybcutnnmuvevqx> of Thu, 31 Oct
2002 01:23:07 in microsoft.public.win2000.cmdprompt.admin, Frank
<pnmqx...@ivybcutnnmuvevqx.com> writes
I can confirm the XP CMD.EXE works on W2K.
It is a real PITA that microSoft does not believe it necessary to
document such matters! :(

>
>Frank
>

--
Walter Briscoe

Frank

unread,
Nov 1, 2002, 6:14:07 AM11/1/02
to
Walter Briscoe <Y$eS4gJfF...@ponle.demon.co.uk>...

^ In message <01c2807c$21a4e570$0125250a@ivybcutnnmuvevqx>, Frank
^ >Actually 2kb (2048) is the precise figure,
^ >which includes the CR/LF at the end.

After thinking about this more I suspect that the unusable two bytes may be
for a wide-character NULL (sizeof(WCHAR)) rather than for a CR/LF.


^ It is a real PITA that microSoft does not believe it necessary to
^ document such matters! :(

I only know of PITA as a type of bread but I'm sure I would agree with you if
I understood what you meant.

Frank

Ned Flanders

unread,
Nov 1, 2002, 9:56:10 AM11/1/02
to
PITA=Pain In The A$$
;-)

"Frank" <uukzg...@wzkvctaexrnlifka.com> wrote in message
news:01c28197$e0b0c080$0125250a@wzkvctaexrnlifka...

0 new messages