SCOUG-HELP Mailing List Archives
Return to [ 03 |
December |
2006 ]
<< Previous Message <<
>> Next Message >>
Content Type: text/plain
On Sat, 2 Dec 2006 21:27:09 -0800, Bill Eaglet wrote:
>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
The above three (3) REXX lines will result in your copying the file, XYZ, from the C:\ drive
to the D:\ drive. Please note the beginning and ending double quotation inside of the
set of 2 single quotation marks on line 2.
Sometimes you can define variable to be a double quotation. For example:
Double_Quote = D2C(34)
Commandline = Double_Quote"COPY C:\XYZ D\XYZ"Double_Quote
INTERPRET Commandline
34 is the decimal value for the ASCII double quotation mark
HCM
=====================================================
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.
|