China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 21:52
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Re: How long can the command line be? View 713 Replies 0
Original Poster Posted 2003-06-01 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
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)
==================================================
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Forum Jump: