Window的命令行(cmd.exe)命令的最大长度是多少? [英] What is the maximum length of a Window's command-line (cmd.exe) command?

查看:492
本文介绍了Window的命令行(cmd.exe)命令的最大长度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有很多人在SO上询问问题 cmd.exe命令的最大长度。我想知道Windows命令行长度限制实际上是什么? Windows版本之间是否有所不同?使用32位和64位版本是否会影响此限制?

There are many people asking questions on SO about how to get around the cmd.exe command maximum length. I was wondering what actually is the Windows command-line length limit? Is it different between version of Windows? Does using a 32-bit vs. a 64-bit version affect this limitation?

推荐答案

向Google询问您的第一结果问题是 MS知识库文章:

The first result of asking google about your question was this MS Knowledge Base article:


在运行Microsoft Windows XP或更高版本的计算机上,可以在命令提示符下使用的字符串的最大长度为8191个字符。在运行Microsoft Windows 2000或Windows NT 4.0的计算机上,可以在命令提示符下使用的字符串的最大长度为2047个字符。

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. On computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the command prompt is 2047 characters.

这篇关于Window的命令行(cmd.exe)命令的最大长度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆