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

command line length and nested commands

20 views
Skip to first unread message

Tom Del Rosso

unread,
Oct 12, 2020, 4:46:25 PM10/12/20
to
The command line length limit is reportedly 2k, 8k, or 32k depending on
how it's called.

But in a batch you can have FOR and IF commands with many lines in
parentheses. Depending on how they are processed which limit applies to
the line and which to the whole block?


--



Mike Sanders

unread,
Oct 12, 2020, 5:57:04 PM10/12/20
to
Max length at the command prompt[i] is 2047 chars:

<https://rb.gy/oq7d7w>

See also new changes concerning max path[ii] for Win10:

<https://rb.gy/rrbkta>

Canonical URLs (links my wrap):

i. <https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-
experience/command-line-string-limitation>

ii. <https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-
path-limitation>

--
Mike Sanders
echo zv...@ohflobk.ulcrezneg.arg | rot13
https://busybox.hypermart.net

0 new messages