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: "Just me!" Subject: Re: Command line parameters problem... Date: 1995/10/30 Message-ID: <471l9f$2n5@ixnews2.ix.netcom.com>#1/1 X-Deja-AN: 118383648 references: to: cjlambre@mailbox.syr.edu content-type: text/plain; charset=us-ascii organization: Netcom x-netcom-date: Sun Oct 29 8:45:35 PM PST 1995 mime-version: 1.0 newsgroups: comp.os.vms,comp.sys.vms x-mailer: Mozilla 1.22 (Windows; I; 16bit) "Carl J. Lambrecht" wrote: > >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. > > > What you want to do is a classic VMS tutorial! B^) Allyagottadois... Turn your command into a foreign command, thusly: $ foo :== $:[account.some.where]foo.exe Then, run it like this: $ foo 3500 Then it'll work. Plus, you can do this into command procedures that you can then run batch, if desired! Good luck, and have fun with it!