From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b8af4c15521994f7 X-Google-Attributes: gid1164f8,public From: sol gongola Subject: Re: Specifying parameters to a C program? Date: 1999/08/19 Message-ID: <37BB6FF7.7E63@adldata.com>#1/1 X-Deja-AN: 514526107 Content-Transfer-Encoding: 7bit References: <7pf1gt$g56$1@news.wrc.xerox.com> Content-Type: text/plain; charset=us-ascii Organization: adl data systems inc MIME-Version: 1.0 Reply-To: sol@adldata.com NNTP-Posting-Date: Wed, 18 Aug 1999 22:57:01 EDT Newsgroups: comp.sys.dec Kevin Lynn wrote: > > I'm having trouble guessing how to specify command line parameters to a C > program under VMS. > > What I'd like to do is something like: > > $run myprog -i param1 -a param2 > > so that -i, param1, -a, and param2 are passed to main() in the argv[]. > > Anyone know how to do this under VMS? assuming myprog resides in drive:[dirspec], yo can use either of: $mc drive:[dirspec]myprog -i param1 -a param2 or $mycmd :== $drive:[dirspec]myprog.exe ! define a foreign command then use $mycmd -i param1 -a param2 sol