home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!caen!malgudi.oar.net!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!watson!
- From: cnadler@vnet.ibm.com (Cliff Nadler)
- Subject: Re: Command in REXX to execute the text in a variable?
- Sender: @watson.ibm.com
- Message-ID: <1992Nov18.185413.15488@watson.ibm.com>
- Date: Wed, 18 Nov 92 18:54:13 GMT
- Distribution: usa
- News-Software: IBM OS/2 PM RN (NR/2) v0.15 by O. Vishnepolsky and R. Rogers
- Lines: 26
- Reply-To: cnadler@vnet.ibm.com (Cliff Nadler)
- References: <widow.722104795@camelot>
- Organization: IBM T. J. Watson Research
-
- In <widow.722104795@camelot> widow@camelot.bradley.edu (Shaun Burnett) writes:
- >
- > I'm writing a REXX .CMD file where I'm concatenating strings
- > together to get a file name. I then put the name of the
- > program to execute in another variable. What I would like to
- > do is have the program execute with the file name variable as
- > a parameter.
- >
- > So ...
- >
- > Filename='f:\utils\unzip -v '
- > Program='g:\aoc.zip'
- > xxxxx Program,Filename
- >
- > where xxxxx is a command that would pass "f:\utils\unzip -v
- > g:\aoc.zip" to an environment shell (DOS or OS/2).
-
- INTERPRET is the command you want, however, it is not recommended for use
- (especially with compilers - they HATE that command !). If you just use
- Program Filename
- on a line, REXX will execute the values of the variables in it's default
- environment (as REXX code if possible, else using the CMD environment for
- a default).
-
- Cliff Nadler
- Note: This post represents my views and not those of IBM. So there!
-