home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!fub!ferincz
- From: ferincz@methan.chemie.fu-berlin.de (Jozsef Ferincz)
- Subject: Re: How can I retrieve the command string from within Pascal program ?
- References: <1959.2A9FBDC9@catpe.alt.za>
- Date: Sun, 30 Aug 1992 17:12:24 GMT
- Reply-To: ferincz@methan.chemie.fu-berlin.de
- Organization: Free University of Berlin, Organic Chemistry
- Message-ID: <PTJ6TTB@methan.chemie.fu-berlin.de>
- Lines: 46
-
- Shane.Greyvenstein@p1.f37.n7101.z5.fidonet.org (Shane Greyvenstein) writes:
-
- >Hi!
- >
- > > vmoe> How could one retrieve the on-line program
- > > parameters,
- > > vmoe> such as the program name, or the whole command
- > > string
- > > vmoe> from within the pascal program ?
- >
- >Do this, it should work, although I've never tried it <G>
- >
- >----- CUT HERE -----
- >
- >var params : paramstr;
- > i : integer;
- >
- >
- >
- >
- >
- >begin
- > params:='';
- >
- > for i:=0 to paramcount do { Paramstr(0) is the path }
- ^^^^
- program name with a path
- > params:=params+paramstr(i);
- >end.
- >
- >----- CUT HERE -----
- >
- >Tell me if it worx :-)
- >
- >Cherio,
- >Shane
- >
- >--
- >INTERNET: Shane.Greyvenstein@p1.f37.n7101.z5.fidonet.org
- >via: THE CATALYST BBS in Port Elizabeth, South Africa.
- > (catpe.alt.za) +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
- --
- Jozsef Ferincz INTERNET : ferincz@methan.chemie.fu-berlin.de
- Freie Universitaet Berlin : ferincz@ki1.chemie.fu-berlin.de
- Takustr.3, D-1000 Berlin 33 UUCP : ferincz@fub.uucp
- Fax : +(49 30) 838 51 63 Tel.: +(49 30) 838 26 77, 838 53 63
-