home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / misc / 42098 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.0 KB

  1. Xref: sparky comp.os.os2.misc:42098 comp.os.os2.apps:10083
  2. Path: sparky!uunet!vnet.ibm.com
  3. From: pmuellr@vnet.ibm.com (Pat Mueller)
  4. Message-ID: <19930112.092927.165@almaden.ibm.com>
  5. Date: Tue, 12 Jan 93 12:06:35 EST
  6. Newsgroups: comp.os.os2.misc,comp.os.os2.apps
  7. Subject: Re: Passing batch arguments to pgm (was: Neat timesaving trick.)
  8. Lines: 27
  9.  
  10. >}So, I have e.cmd which looks like
  11. >
  12. >}@start \os2\e %1 %2 %3 %4 %5 %6 %7 %8 %9
  13. >
  14. >}(is there an easier way than making all the %'s?)
  15. >
  16. >If you were to use 4OS2 instead of CMD, you could then rewrite this as:
  17. >
  18. >@start \os2\e %&
  19.  
  20. Write it in rexx as
  21.  
  22.    --------------------------------------
  23.    /* */
  24.    "@start \os2\e" arg(1)
  25.    --------------------------------------
  26.  
  27. or if it HAS to be 1 line
  28.  
  29.    /* */ "@start \os2\e" arg(1)
  30.  
  31. (The /* */ sequence in a .cmd file (starting in line 1, col 1) is
  32. an indication to CMD.EXE that the file is a rexx macro, not the
  33. old style .bat language).
  34.  
  35. Patrick Mueller                  addr:  pmuellr@vnet.ibm.com
  36. IBM Cary, North Carolina         phone: 919-469-7242
  37.