home *** CD-ROM | disk | FTP | other *** search
- echo off
- find "%1" %FILE% > results
- :GET_NEXT
- shift
- shift
- if (%0)==(or) goto OR_SEARCH
- if (%0)==(and) goto AND_SEARCH
- if (%0)==(not) goto NOT_SEARCH
- if not (%0)==() echo ***The parameter "%0" was not properly entered.***
- type results | find /v "---------- " | more
- goto END
- :OR_SEARCH
- find "%1" %FILE% > temp
- copy results+temp results > nul
- goto GET_NEXT
- :AND_SEARCH
- find "%1" results > temp
- goto CLEAN_UP
- :NOT_SEARCH
- find /v "%1" results > temp
- :CLEAN_UP
- del results
- rename temp results
- goto GET_NEXT
- :END