Home > OS >  CMD.exe compatible replacement supporting longer command lines (>8191 chars)
CMD.exe compatible replacement supporting longer command lines (>8191 chars)

Time:10-14

The documentation of cmd.exe tells us there is a 8191 character limit to a cmd.exe command line. Powershell may have the same issue (but anyway I think it is not compatible with cmd syntax).

The Windows OS technical limit is "much" higher, at 32767 caracters or so (see CreateProcessA documentation).

Are there compatible alternative shells to cmd.exe that increase the command line length limit above 8191 characters ?

Note 1: I am not asking about a terminal emulator (GUI) problem: this is a shell problem.

Note 2: I believe this question is not a duplicate because it is focused on a precise limitation of cmd.exe. Also I could not post my Yori answer on this or this questions because they are closed.

CodePudding user response:

Have a look at Yori. There is no such limit in Yori. Yori is open-source.

Yori is a CMD replacement shell that supports backquotes, job control, and improves tab completion, file matching, aliases, command history, and more. It includes a handful of native Win32 tools that implement commonly needed tasks which can be used with any shell.

CodePudding user response:

You might be interested in Take Command from jpsoftware, abbreviated TCC. There is no such limit in TCC.

There is no limit to the size of a TCC command line (other than that imposed by Windows or the amount of RAM in the system).

  • Related