Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!munnari.oz.au!metro!grivel!gara!ddavidso From: ddavidso@gara.une.oz.au (Dean Davidson) Newsgroups: comp.lang.pascal Subject: Re: DOS command line Keywords: command line Message-ID: <5694@gara.une.oz.au> Date: 19 Mar 91 22:44:32 GMT References: <1991Mar19.161155.21637@en.ecn.purdue.edu> Reply-To: ddavidso@gara.UUCP (Dean Davidson) Organization: Uni. of New England, Armidale, NSW. Lines: 25 In article <1991Mar19.161155.21637@en.ecn.purdue.edu> terran@en.ecn.purdue.edu (The Lord of Fire and Death) writes: >Does anybody know where the DOS command line is kept in memory and/or >how to find it at run time? The following should do the job for you: -------------------------------------------------------------------- {function to get the command line} {modified by Dean Davidson from an idea by Trevor Carlson} type st = string[128]; pt = ^st; function cl : st; {function to get the command line} var sp : pt; begin sp := ptr(PrefixSeg,$80); cl := sp^; end;