Path: utzoo!utgpu!water!watmath!clyde!rutgers!im4u!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!terminus!dave From: dave@terminus.UUCP (VAX Headroom @ The End of the Galaxy) Newsgroups: comp.os.vms Subject: Re: XMODEM for VMS and VAX C command input Summary: VAXC command line input is easy Message-ID: <39@terminus.UUCP> Date: 3 Feb 88 04:06:11 GMT References: <8801271818.AA02217@ucbvax.Berkeley.EDU> <2435@crash.cts.com> Lines: 27 If you define your invoking command like the following: prog:==$ $disk:[directory]file and then invoke it like this: prog param1 5 7 Then argc will contain 4 and argv[0] will contain the pathname of the program while argv[1] to argv[3] will contain param1 5 and 7 respectively. This makes moving programs from unix enviroments easy although I usually convert them to the CLD syntax anyway as I prefer the parsing (and the consistency) of using DCL command lines. the arg stuff should be declared like this: main(argc,argv) int argc; char *argv[]; { blah blah blah } -- ...ihnp4!utah-cs!utah-gr!uplherc!sp7040!obie!terminus!trntor.dnet!dave "...between the streets of dallas and the beaches of miami...this was max headroom's finest hour."