命令行字符串的最大长度 [英] Maximum Length of Command Line String

查看:271
本文介绍了命令行字符串的最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows中,命令行字符串的最大长度是多少?含义如果我指定一个在命令行上接受参数的程序,例如 abc.exe -name = abc

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.

推荐答案


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

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.

- Microsoft支持知识库文章830473

这篇关于命令行字符串的最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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