batch-file – xp批处理文件中的行长度限制?
发布时间:2020-12-13 20:38:48 所属栏目:Windows 来源:网络整理
导读:在.bat文件中运行长命令时(比如300个字符长度) 例如: Some_exe "C:/Documents and Settings/Some user/Some folder1/Some folder2/Some folder3/Some folder4 ... -Some_exe_arg1="arg 1 name" -Some_exe_arg2="arg 2 name" -Some_exe_arg3="arg 3 name" CM
在.bat文件中运行长命令时(比如300个字符长度)
例如: Some_exe "C:/Documents and Settings/Some user/Some folder1/Some folder2/Some folder3/Some folder4 ... -Some_exe_arg1="arg 1 name" -Some_exe_arg2="arg 2 name" -Some_exe_arg3="arg 3 name" CMD.exe可以处理的行大小是否有限制? 谢谢!
最大批处理行长度的最小值为8191字节!
这意味着一行可以在任何情况下长8191个字节,但也可以创建具有几乎无限长度的合法批量行. 样品 echo Longline with 8191 characters......... set "var=a" echo UltraLongLine %var:4000chars=% %var:4000chars=% %var:4000chars=% %var:4000chars=% echo Test <8000Chars <8000chars <8000chars .... <nul 关键在于,解析后所有行都小于8192字节 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – W2008 – C驱动几乎没有空间 – 选项?
- 如何将jar转换为dll,jar取决于多个罐子
- windows – 如何解决CoUnitialize()上挂起的进程?
- .net – 从不同的文件夹加载一个DLL引用?
- windows – Delphi – CreateProcess – 执行多个命令
- 批处理文件 – Windows在PATH中搜索可执行文件的相对顺序是
- Windows XP / Vista中的文件创建日期不正确
- 在Windows上使用R将本地repo推送到github
- 安装 – 在没有Windows CD的Windows 2003上安装IIS
- 02、Windows Server 2003域账户管理(04)
推荐文章
站长推荐
- Windows Azure SDK返回未知的AccountType:undef
- .net – 启动时完全隐藏WPF窗口?
- 服务可以在Windows下做什么?
- Windows – ClientPerfCountersInstaller.exe停止
- 窗口 – 如果条件在批处理文件
- windows – 使用Lazarus为Mac编写代码
- Microsoft Edge不允许对websockets进行localhost
- Distributed Server Monitoring Solution
- windows-server-2008 – 为什么Windows CA Serve
- windows – 什么是衡量网络延迟的最佳工具?
热点阅读