home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
smart21b.zip
/
MACROS
/
MAKENDX.REX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-08-16
|
931b
|
26 lines
/* Grep Find */
'S_CLEAR_MACRO_OUTPUT'
'S_PROMPT INF file, args'
IF rc \= 0 THEN EXIT
IF args = "" THEN EXIT
infstring = 'c:\ndxbld\ndxs\' || args || '.ind'
infstring3 = 'c:\ndxbld\ndxs\' || args || '.inx'
infstring2 = args || '.inf'
'c:\ndxbld\ndxbld.exe' infstring2 infstring infstring3
infstring4 = 'c:\ndxbld\ndxs\' || args || '.con'
infstring5 = 'c:\ndxbld\ndxs\' || args || '.cox'
infstring6 = 'c:\ndxbld\ndxs\' || args || '.nd0'
infstring7 = 'c:\ndxbld\ndxs\' || args || '.ndx'
'c:\ndxbld\ndxbld.exe' infstring2 infstring4 infstring5
'copy' infstring3|| '+' ||infstring5 ' ' infstring6
'sort <' infstring6 '>' infstring7
'C:\ndxbld\ndxdup\ndxdup.exe' infstring7
infstring8 = 'c:\ndxbld\ndxs\' || args || '.nd_'
'copy' infstring8 ' ' infstring7
'del' infstring3
'del' infstring5
'del' infstring6
'del' infstring8
'copy ' infstring7 'C:\ndxbld\ndxfinal\*.*'
'c:\slink2\SLSTART.exe' ' ' infstring7