home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo.
- echo ┌───────────────────────────────────────────────────┐
- echo │ Wildcard locate file names on a device │
- echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 14-Jan-90 │
- echo └───────────────────────────────────────────────────┘
- rem Trick: below is echo + ascii 255
- echo
-
- if "%1"=="" goto _help
-
- cd \
- attrib %1 /s
- goto _out
-
- :_help
- echo Usage: LOCATE SearchString
- echo.
- echo E.g. LOCATE tsbat.nws finds all occurrences of tsbat.nws on the device
- echo LOCATE *.com finds all .com files
- echo LOCATE ts*.arc finds all ts-packages
- echo.
- echo You might want to apply PUSHDIRE prior, and POPDIRE after running
- echo this batch
-
- :_out
- echo on
-