home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4966 < prev    next >
Encoding:
Text File  |  1992-08-21  |  877 b   |  27 lines

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