Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!lll-winken!decwrl!purdue!haven!decuac!shlump.nac.dec.com!mountn.dec.com!minow From: minow@mountn.dec.com (Martin Minow) Newsgroups: comp.lang.c Subject: Re: Command line parameters with VAX C? Message-ID: <1191@mountn.dec.com> Date: 3 Jan 90 21:01:05 GMT References: <6808@lindy.Stanford.EDU> <1042@stsci.edu> Reply-To: minow@mountn.dec.com (Martin Minow) Organization: Digital Equipment Corporation Lines: 24 Here's a simple way to define C executables as foreign commands with a minimum of typing: First, create the following command file (put it in your login directory for convenience, calling it NAME.COM) $! make X.exe in the current directory into a foreign command $ if "''p1'" .eqs. "" then write sys$output "How can I name nothing?" $ 'p1' :== $'f$environment("DEFAULT")''p1'.exe Now, edit your LOGIN.COM to define NAME.COM as a foreign command: $ name :== @sys$login:name.com Now, after you link a program, you can turn it into a foreign command by $ link foo... $ name foo $ foo arg1 arg2 etc. Hope this helps. Martin Minow minow@thundr.enet.dec.com