中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-15 16:42
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » Re: How long can the command line be?
Printable Version  754 / 0
Floor1 ko20010214 Posted 2003-06-01 00:00
版主 Posts 1,628 Credits 7,296
Sender: ghosts (U-2◆Hell Express), Board: DOS
Title: Re: How long can the command line be?
Posted from: BBS Shuimu Tsinghua Station (Mon Jul 28 23:54:50 1997)

【 In lihm (Miming)'s post it was mentioned: 】
: Programs need to be compiled from the command line, with lots of switches, options, parameters, etc.
: So a compile or link command often exceeds the command-line length limit, resulting in
: the error arg list too lang.
: How can this be solved?
Under DOS the command line generally can't exceed 127 characters.
It seems MS C or MS Fortran had software that could raise this limit to 4096?
But I've never used this kind of thing.
Another method is to set environment variables, like tmp=, include=, and so on.
There are also ones that set pseudo-instructions (MASM does this), putting the parameter settings directly into the source program.
But neither pseudo-instructions nor environment variables have any unified standard,
you have to analyze each specific software case by case

--
Space shuttle: Hey man, can you go a little faster?
Boeing 747: The bus is only 64K, it's already overloaded. Switch to fiber optic.
_|_
__^|^__
---0==0__O__0==0---

※ Edited by ·ghosts on Jul 28 23:55:51·
※ Edited by ·ghosts on Jul 28 23:57:04·
※ Source: ·BBS Shuimu Tsinghua Station bbs.net.tsinghua.edu.cn·

(This post was copied using the S-Term article copy script)
==================================================
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023