* FILES.KEX 1.0 written by Frank Ellermann * * This macro helps to update FILES.BBS files as used in many BBS. * It searches an existing FILES.BBS for all files in its current * directory not already mentioned in FILES.BBS (so called orphans) * and adds them at the end of FILES.BBS, where you may edit known * missing descriptions as you like. * * assumptions: * file names follow 8+3 DOS style and case doesn't matter. * FILES.BBS entries may contain wild cards '?' and '*'. * FILES.BBS entries without valid description show '-/-' * as info text, this can be modified in variable BBSNONE. * Other sysops prefer descriptions like 'in backup' etc. * * For a test rename your FILES.BBS to FILES.$$$ and modify * the variable BBSFILE to end up in '.$$$' instead of '.BBS' bbsnone = '-/-' bbsname = 'FILES' bbspath = fmode.1() || fpath.1() || '\' bbsfile = bbspath || bbsname || '.BBS' bbs_dir = bbspath || bbsname || '.DIR' olddisk = dir.1() ; 'CHDR' bbspath oldpath = dir.1() ; 'CHD' fpath.1() * leave BBS_DIR if necessary, verify existence of BBSFILE 'XEDIT' bbs_dir '(NOMSG' ; 'QQUIT' 'XEDIT' bbsfile '(NOMSG' ; 'LOCATE :1' if eof.1() = 'ON' then do 'QQUIT' ; 'DIR' 'CHD' oldpath ; 'CHDR' olddisk 'EMSG' bbsfile 'not found or empty' exit 1 end * create new BBS_DIR, remove subdirectories 'DIR (NOMSG' ; 'SET MSGMODE OFF' ; 'SET FNAME' bbsname 'ZONE 17 25' ; 'ALL ,