@echo off if !%1 == ! goto noparm if not exist %1 goto notfound setlocal set line=@@@@@ for /F "usebackq tokens=*" %%f in (`sort %1`) do call :procline "%%f" endlocal goto :eof :procline if !%line% == !%~1 goto :eof set line=%~1 echo %~1 goto :eof :noparm echo Usage: %~f0 [datei] echo No file specified, terminating. goto :eof :notfound echo File %1 not found. goto :eof
/windows | Nov 14, 2005