home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psgrain!hippo!catpe!p1.f37.n7101.z5.fidonet.org!Shane.Greyvenstein
- From: Shane.Greyvenstein@p1.f37.n7101.z5.fidonet.org (Shane Greyvenstein)
- Sender: ufgate@catpe.alt.za (newsout1.26)
- Newsgroups: comp.lang.pascal
- Subject: How can I retrieve the command string from within Pascal program ?
- Message-ID: <1959.2A9FBDC9@catpe.alt.za>
- Date: Fri, 28 Aug 92 18:36:01 GMT
- Organization: FidoNet node 5:7101/37.1 - Top Byte, Verwoerdburg
- Lines: 37
-
- 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 }
- 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.
-