gpt4 book ai didi

windows - 命令行字符串的最大长度

转载 作者:可可西里 更新时间:2023-11-01 11:53:48 25 4
gpt4 key购买 nike

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

我编写的一个简单的控制台应用程序通过命令行获取参数,我想知道最大允许数量是多少。

最佳答案

来自 Microsoft 文档:Command prompt (Cmd. exe) command-line string limitation

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.

关于windows - 命令行字符串的最大长度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3205027/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com