/* QuickSearch - Searches the index of the current CD $VER: QuickSearch.awebrx 1.0 (2.9.99) (c) Neil Bothwick, Wirenet */ /* ;;; Initialise */ options results CDname = 'AACD03:' IndexFile = CDName'CDTools/indices/'compress(CDName,':') TempFile = 'T:QuickSearch.temp' ResultFile = 'T:QuickSearch.html' AWebPort = address() ;;; /* ;;; Search index file */ parse arg SearchStr SearchStr = translate(SearchStr,' ','+') address command CDName'System/C/FlashFind >'TempFile IndexFile '"'SearchStr'" NOPREFS QUIET NH' if RC > 0 then call ExitMsg('No matches found for *"'SearchStr'*"') ;;; /* ;;; Open output file and write headers */ call open(in,TempFile,'R') call open(out,ResultFile,'W') call writeln(out,'') call writeln(out,'
'name' | 'path'' call writeln(out,line) end call writeln(out,' |