home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 3
/
Merciful_Release_3.bin
/
software
/
p
/
professionalpagev4.1.lha
/
Rexxc
/
getdirlist.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-04-26
|
658b
|
38 lines
/*
Copyright Gold Disk Inc., January 13, 1992
*/
arg sourcedir, filter
cr = '0a'x
if ~show(l, "rexxsupport.library") then
if ~addlib("rexxsupport.library", 0, -30) then
exit_msg("Please install the rexxsupport.library in your libs: directory before running this genie.")
files = showdir(sourcedir, f, '0a'x)
list = ''
do while files ~= ''
parse var files name '0a'x files
p = pos(filter, upper(name))
if p ~= 0 then
list = list || cr || left(name, p - 1)
end
list = delstr(list, 1, 1)
return(list)
exit_msg()
exit_msg: procedure
do
arg message
if message ~= '' then call ppm_Inform(1,message,)
return("")
end