home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 14 Text
/
14-Text.zip
/
p1osapar.zip
/
OS2APARS.CMD
next >
Wrap
OS/2 REXX Batch file
|
1993-09-28
|
819b
|
32 lines
/* */
Call RxFuncAdd 'SysFileTree','RexxUtil','SysFileTree'
aparinf. = ''
inf_list = ''
Call SysFileTree '??APR?.INF','APARINF','FO'
If aparinf.0 > 0 Then Do
Do loop = 1 to aparinf.0
aparinf.loop = FILESPEC('N',aparinf.loop)
End
/* Sort the filenames to keep the files in the right sequence */
Do loop1 = 1 to aparinf.0 - 1
Do loop2 = loop1+1 to aparinf.0
If aparinf.loop1 > aparinf.loop2 Then Do
temp = aparinf.loop1
aparinf.loop1 = aparinf.loop2
aparinf.loop2 = temp
End
End
End
Do loop = 1 to aparinf.0
inf_list = inf_list'+'aparinf.loop
End
inf_list = SUBSTR(inf_list,2) /* Remove the leading '+' */
'@VIEW' inf_list
End
Else
Say 'No OS2APAR INF files were found in the current directory.'
Exit