Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » Re: command line tails in Turbo Pascal
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: command line tails in Turbo Pascal [message #79027] Sun, 02 June 2013 23:11
gino is currently offline  gino
Messages: 61
Registered: May 2013
Karma: 0
Member
Message-ID: <377@voder.UUCP>
Date: Fri, 21-Sep-84 17:09:38 EDT
Article-I.D.: voder.377
Posted: Fri Sep 21 17:09:38 1984
Date-Received: Wed, 26-Sep-84 02:49:18 EDT
Organization: National Semiconductor, Santa Clara
Lines: 37

References: <3242@ecsvax.UUCP>, <373@voder.UUCP>, <374@voder.UUCP>

[food for thought]

My office mate, George Smith, has given me this copy of an
article in TUG Lines.  I have run it and it works either in
memory or standalone (it even has a blank Writeln - see #373
referenced above).

BTW, `TUG Lines' is the newsletter of the Turbo Users Group.
If you're interested, mail me & I'll extort their address out of
George.

-------------------- cut here ------------------------------
program params;

(*
** Submitted to TUG Lines by Paul Klarreich, Brooklyn, NY
**
** This program illustrates a method of finding the parameters
** to an MS-DOS command file.  In any MS-DOS program, the parameters
** are found at offset $80 in the program segment prefix -- the first
** $100 bytes of the program segment.  The byte at $80 gives the
** length of the string and the next "length" bytes are the actual
** characters.
*)

var
    CmdTail: string[80] absolute cseg:$0080;

begin
    writeln;
    writeln('The command tail for this program is:');
    writeln('-->', CmdTail, '<--');
end.
-- 
Gene E. Bloch (...!nsc!voder!gino)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Jobs available:1) Datatrieve+f77orC 2)BASIC+ on RSTS
Next Topic: For DOS hacks with strong stomachs
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 23:28:28 EDT 2024

Total time taken to generate the page: 0.03036 seconds