home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d07xx
/
d0770.lha
/
Uedit
/
ucd.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-11-22
|
682b
|
29 lines
/* change Uedit's current directory */
/* Ben Eng was here but flew away on a Jet Penguin */
parse arg x y
CR = '0a'x
if x = '?' then call warn
if x = '*' then do
y = x
x = ""
end
if x = "" | x = '""' then cdir = pragma('d')
else cdir = x
address 'URexx' 'd:' || cdir
if cdir = '' | right(cdir,1) = '/' | right(cdir,1) = ':' then
rootdir = cdir
else rootdir = cdir || '/'
if y = "" then do
address 'URexx' 'c:43+0' /* tiny-window */
exit
end
if y = "*" then address 'URexx' 'c:912+0' /* file request */
else do i=1 to words(y)
fnam = rootdir || word(y, i)
address 'URexx' 'f:' || fnam /* load file */
end
exit
warn:
say " USAGE: [rx] ucd [dir] [*|files ...]"
exit