From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,f07a9e32e20151e8 X-Google-Attributes: gidf7344,public X-Google-Thread: fc7fa,f07a9e32e20151e8 X-Google-Attributes: gidfc7fa,public From: gezelter@rlgsc.com Subject: Re: Command line parameters problem... Date: 1995/10/30 Message-ID: <1995Oct30.063458.766@rlgsc.com>#1/1 X-Deja-AN: 118383703 references: organization: Robert Gezelter Software Consultant, Flushing, NY newsgroups: comp.os.vms,comp.sys.vms In article , "Carl J. Lambrecht" writes: > > I am having trouble getting command line parameters passed when running > an executable. The executable is a compiled C source code, which has the > necessary argc,argv code to handle a command line argument, but whenever > I try to run with my command line arguments: > run foo.exe 3500 > I get an error on the 3500 stating that too many parameters have been > used, reenter command with less parameters. Is there a compiler or > linker flag which must be set to allow extra parameters? I am working on > a VAX 4100, running OpenVMS 6.1, and compiled using the standard DEC C > libraries, which appear to have all the C lib functions I need. What am > I missing? > > Thanks in advance... > -Carl J Lambrecht > Kinesis Computing, Inc. > > -- Carl, The correction is to define a "foreign command". For example, for the example above: $ foo :== $ SYS$LOGIN:FOO Then, typing "FOO 3500" will function as desired. I hope that the above is helpful, if I have been unclear, or can be of further assistance, please feel free to contact me via Email or phone. - Bob +--------------------------------------------------------------------------+ | Robert "Bob" Gezelter E-Mail: gezelter@rlgsc.com | | Robert Gezelter Software Consultant Voice: +1 718 463 1079 | | 35-20 167th Street, Suite 215 Fax: (on Request) | | Flushing, New York 11358-1731 | | United States of America | +--------------------------------------------------------------------------+