Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!news From: CDCKAB%EMUVM1.BITNET@cunyvm.cuny.edu ( Karl Brendel) Newsgroups: comp.lang.pascal Subject: Re: Getting the command line args Message-ID: <24963@adm.BRL.MIL> Date: 8 Nov 90 19:04:25 GMT Sender: news@adm.BRL.MIL Lines: 23 In brief, hoping to put this question to rest :) : 1) Declare a string and use Move() to copy the command line tail to the string; or 2) Declare a pointer to a string and assign the address of the command line tail to the pointer. The command line tail is located at PrefexSeg:$80. It comprises the entire DOS command line (or EXECed command, etc.), including all white space, less the program name and any redirection/piping symbols (> < |) and their arguments. +-------------------------------------------------------------------------+ | Karl Brendel Centers for Disease Control | | Internet: CDCKAB@EMUVM1.BITNET Epidemiology Program Office | | Bitnet: CDCKAB@EMUVM1 Atlanta, GA, USA | | ILink/RIME: KARL BRENDEL phone 404/639-2709 | | CIS : 73307,3101 fts 236-2709 | | GEnie: K.BRENDEL Home of Epi Info 5.0 | +-------------------------------------------------------------------------+