[comp.lang.pascal] program switches

"caius tenche" <caius.tenche@canrem.uucp> (05/17/91)

In article <1991May6.141707.19543@ux1.cso.uiuc.edu>
   husak@ux1.cso.uiuc.edu (BugsBunny) writes

BY>This may be too technical for this group but here it goes.... (or beyond
BY>the scope of Pascal)
BY>Is there a way to write a program or a way to read the switches used
BY>behind executable names of files... For example:
BY>       program /v
BY>   How does one read the '/v' on the end or is it beyond
BY>   the scope of Pascal.... This is after compilation of
BY>   course.


Too technical, I think not.  This is very basic indeed.  If you're using
Turbo Pascal, check out the ParamCount and ParamString functions.

If not, then you must find the programs PSP and get the command line parameters
(switches) from there.

Too technical, baaahhh!

Ttyl, Caius

    UUCP: lsuc!canrem!caius.tenche
InterNet: caius.tenche%canrem@lsuc.on.ca
---
 ? DeLuxe? 1.1 #7470 ? Detailed instructions provided with all new socks.
--
Canada Remote Systems.  Toronto, Ontario
NorthAmeriNet Host