echo off
echo.
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo ³ Wildcard locate file names on a device            ³
echo ³ By Prof. Timo Salmi, ts@uwasa.fi, Sat 29-Aug-1992 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
rem Trick: below is echo + ascii 255
echo ÿ

if "%1"=="" goto _help

if "%2"=="/p" goto _more
attrib %1 /s
goto _out

:_more
attrib %1 /s | more
goto _out

:_help
echo Usage: LOCATE [Device:\]FileSearchString [/p(age)]
echo.
echo Examples:
echo LOCATE c:\tsbat.nws  finds all occurrences of tsbat.nws on C disk
echo LOCATE d:\*.com      finds all .com files on D disk
echo LOCATE e:\ts*.zip    finds all ts-packages on E disk

:_out
echo on
