SCOUG-HELP Mailing List Archives
Return to [ 03 |
December |
2006 ]
<< Previous Message <<
>> Next Message >>
** Reply to message from "Harry Motin hmotin@sbcglobal.net" on Sun, 3 Dec 2006
08:34:47 -0800
> >How can I invoke an OS/2 (non REXX) command filke from within
> >an OS/2 REXX command?
>
> You have to place the OS/2 command inside of a set of quotes. Any REXX command
> that appears in quotation the REXX interpreter passes along to the OS for execution.
> For example:
>
> Commandline = "COPY C:\XYZ D\XYZ"
> Commandline = '"'Commandline'"'
> INTERPRET Commandline
No need to go to all that trouble. Just put the program name, and possibly any
fixed parameters, in quotes and any variables outside the quotes.
/* rexx */
fromfile = 'c:\XYZ'
tofile = 'd:\XYZ'
'copy' fromfile tofile
--
Robert Blair
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 03 |
December |
2006 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|