home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6540 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.os.os2.programmer
  2. 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!
  3. From: cnadler@vnet.ibm.com (Cliff Nadler)
  4. Subject: Re: Command in REXX to execute the text in a variable?
  5. Sender: @watson.ibm.com
  6. Message-ID: <1992Nov18.185413.15488@watson.ibm.com>
  7. Date: Wed, 18 Nov 92 18:54:13 GMT
  8. Distribution: usa
  9. News-Software: IBM OS/2 PM RN (NR/2) v0.15 by O. Vishnepolsky and R. Rogers
  10. Lines: 26
  11. Reply-To: cnadler@vnet.ibm.com (Cliff Nadler)
  12. References: <widow.722104795@camelot>
  13. Organization: IBM T. J. Watson Research
  14.  
  15. In <widow.722104795@camelot> widow@camelot.bradley.edu (Shaun Burnett) writes:
  16. >
  17. >    I'm writing a REXX .CMD file where I'm concatenating strings
  18. >    together to get a file name.  I then put the name of the
  19. >    program to execute in another variable.  What I would like to
  20. >    do is have the program execute with the file name variable as
  21. >    a parameter.
  22. >
  23. >    So ...
  24. >
  25. >    Filename='f:\utils\unzip -v '
  26. >    Program='g:\aoc.zip'
  27. >    xxxxx Program,Filename
  28. >
  29. >    where xxxxx is a command that would pass "f:\utils\unzip -v
  30. >    g:\aoc.zip" to an environment shell (DOS or OS/2).
  31.  
  32. INTERPRET is the command you want, however, it is not recommended for use
  33. (especially with compilers - they HATE that command !). If you just use
  34. Program Filename
  35. on a line, REXX will execute the values of the variables in it's default
  36. environment (as REXX code if possible, else using the CMD environment for
  37. a default).
  38.  
  39. Cliff Nadler
  40. Note: This post represents my views and not those of IBM. So there!
  41.