delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/02/15/17:48:32

Date: Sat, 15 Feb 1997 16:22:57 -0600 (CST)
From: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
To: "'OpenDOS newsgroup'" <opendos AT mail DOT tacoma DOT net>
Subject: Re: [opendos] BAD Filesystems
In-Reply-To: <14795.9702152115@pulteney.dcs.st-andrews.ac.uk>
Message-ID: <Pine.GSO.3.95.970215161613.22859A-100000@sparkie.gnofn.org>
MIME-Version: 1.0
Sender: owner-opendos AT mail DOT tacoma DOT net

On Sat, 15 Feb 1997 dg AT dcs DOT st-and DOT ac DOT uk wrote:
> >> > I believe that COMMAND.COM / 4DOS allready allow you to do what

> There's a limit in DOS of 128 characters for the command line, after all
> environment variables have been expanded (this is the PATH limitation
> problem). I think this is because there's a fixed-size buffer. While it
> I don't know how easy it would be to make the buffer longer --- how many

You'd kill every app with this, the reason for the limit is that the
command line is placed in the Program Segment Prefix, the first 256
memory locations of every program.  The first 128 are control related
information, the second 128 is the Default Data Transfer Area, and is also
used to hold the command line until you use the DTA.  Which is why it's
important to read the command line before doing any disk activity unless
you setup your own DTA.  BTW, there's a flaw with the 128 characters, the
first character is a count of the length of the command line, the second
is the space character from the command line, and the rest is the actual
command line itself and as far as I can remember, there's a NULL character
at the end.  So effectively you have 126 characters available.

<! PrePared HTML!  Just export as a HTML file and Click!>
A Christian Web Site!  The Light 
<a href="http://www.thelight.org/">.</a><br>
A neat place to visit. HotSpot 
<a href="http://www.hspro.com/hotspot/">.</a><br>
Caldera, Inc. / Makers of OpenDOS
<a href="http://www.caldera.com/">.</a><br>
Caldera's OpenDOS page
<a href="http://www.caldera.com/dos/dos.htm">.</a><br>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019