home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
db22re.zip
/
COPYLAB.CMD
next >
Wrap
OS/2 REXX Batch file
|
1993-03-09
|
2KB
|
53 lines
/* */
Begin:
call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
call SysLoadFuncs
call SysCls
call SetColor
'@echo off'
DoIt:
say
say
say c.yellow '---> Hello: place the diskette in drive a:' c.itblue
pause
say c.green
address cmd 'copy d:\lab\*.* a:\'
if RC \= 0 then signal ErrorRC
EndProg:
say c.reset
'exit'
ErrorRC:
say c.itred
call beep 220,500
say
say ' >>> OS/2 has returned a fatal condition code'
say ' RC = ' RC
say ' RESULT = ' RESULT
say
say c.normal
pause
signal EndProg
SetColor:
ansii.esc = '1B'x
c.normal = ansii.esc || '[0m'
c.highlite = ansii.esc || '[1m'
c.blackback = ansii.esc || '[40m'
c.green = c.normal || ansii.esc || '[32m'
c.grey = c.normal || ansii.esc || '[37m'
c.red = c.normal || ansii.esc || '[31m'
c.itred = c.highlite || ansii.esc || '[31m'
c.itgreen = c.highlite || ansii.esc || '[32m'
c.yellow = c.highlite || ansii.esc || '[33m'
c.itblue = c.highlite || ansii.esc || '[34m'
c.itmagenta = c.highlite || ansii.esc || '[35m'
c.itcyan = c.highlite || ansii.esc || '[36m'
c.white = c.highlite || ansii.esc || '[37m'
c.std = c.normal || c.itcyan || c.blackback
c.reset = c.normal || c.grey || c.blackback
return 0