home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!viznyuk
- From: viznyuk@ohstpy.mps.ohio-state.edu
- Newsgroups: comp.lang.pascal
- Subject: How can I retrieve the command string from within Pascal program ?
- Message-ID: <13453.2a9509ab@ohstpy.mps.ohio-state.edu>
- Date: 21 Aug 92 19:20:11 GMT
- Lines: 18
-
- This may be a trivial question, but still I need the answer:
-
- How could one retrieve the on-line program parameters,
- such as the program name, or the whole command string
- from within the pascal program ?
- There is no such problem in C where I could just
- use something like
- ------
- main(argn,argc)
- int argn;
- char *argc[];
- ------
- where in this case argc[0] would be the program name,
- and argc[1],argc[2],.. - on-line parameters.
-
- I just couldn't figure out how I can do this
- in Pascal (on VAX/VMS). Any suggestions ?
- S.V.
-