1.

Solve : diablos fast find?

Answer» SIMPLE script , first ADDS all files with attributed files to a day-month-year_01A
then uses findstr to FILTER them instantly.. , then saves your search as year-mysearch.0b
so if you search for the same file again, its instant the next time... i added dates because files change,
so everyday it creates a new day-month-year_01A file

syntax
first scan - %0
search - %0 %1


@ECHO OFF
Rem Get Day,Mth & Year from %Date%
SET Day=%Date:~0,2%
set Mth=%Date:~3,2%
set Yr=%Date:~6,4%
set UF=%1
if exist %Yr%_%UF%.0B GOTO HPPR
if exist 1_%Day%-%Mth%-%Yr%_01A GOTO SERH
if not exist 1_%Day%-%Mth%-%Yr%_01A GOTO BEGN

:BEGN
CD\
dir *.* /B /S /X >>01A
ren 01A 1_%Day%-%Mth%-%Yr%_01A
attrib +S +H 1_%Day%-%Mth%-%Yr%_01A
GOTO END

:SERH
CLS
findstr %1 1_%Day%-%Mth%-%Yr%_01A >>%Yr%_%UF%.0B
attrib +S +H %Yr%-%UF%.0B
CLS
findstr %1 1_%Day%-%Mth%-%Yr%_01A
GOTO END

:HPPR
type %Yr%_%UF%.0B
GOTO END

:END




Discussion

No Comment Found