📄 find.bat
字号:
@echo off
if "%2"=="%2" set name="%2"
if "%3"=="%3" set ext="%3"
if "%1"=="a" goto start
if "%1"=="b" goto start
if "%1"=="c" goto start
if "%1"=="d" goto start
if "%1"=="e" goto start
if "%1"=="f" goto start
if "%1"=="g" goto start
if "%1"=="h" goto start
if "%1"=="i" goto start
if "%1"=="j" goto start
if "%1"=="k" goto start
if "%1"=="l" goto start
if "%1"=="m" goto start
if "%1"=="n" goto start
if "%1"=="o" goto start
if "%1"=="p" goto start
if "%1"=="q" goto start
if "%1"=="r" goto start
if "%1"=="s" goto start
if "%1"=="t" goto start
if "%1"=="u" goto start
if "%1"=="v" goto start
if "%1"=="w" goto start
if "%1"=="x" goto start
if "%1"=="y" goto start
if "%1"=="z" goto start
if "%1"=="A" goto start
if "%1"=="B" goto start
if "%1"=="C" goto start
if "%1"=="D" goto start
if "%1"=="E" goto start
if "%1"=="F" goto start
if "%1"=="G" goto start
if "%1"=="H" goto start
if "%1"=="I" goto start
if "%1"=="J" goto start
if "%1"=="K" goto start
if "%1"=="L" goto start
if "%1"=="M" goto start
if "%1"=="N" goto start
if "%1"=="O" goto start
if "%1"=="P" goto start
if "%1"=="Q" goto start
if "%1"=="R" goto start
if "%1"=="S" goto start
if "%1"=="T" goto start
if "%1"=="U" goto start
if "%1"=="V" goto start
if "%1"=="W" goto start
if "%1"=="X" goto start
if "%1"=="Y" goto start
if "%1"=="Z" goto start
GOTO HELP
:start
if "%2"=="" goto help2
if "%3"=="" goto help3
echo.Searches fileing... drive:[%1] name:[%2]
@dIr /On /a /s /B %1:\%name% >search%ext%
echo.Save as file name to [search%3]
echo.Show searches file Press any key to continue or Ctrl+Break to exit
pause>nul
type search%ext%
echo.-----------------------------------------
goto end
:help
echo.
echo.FIND drive[a,b,c,....z] find file[*.*] save searches file name[.ext]
echo.--------------------------------------------------------------------
echo. FIND a * my.txt qq:412147107
echo. FIND b *.mp3 11.m3u edit:anki.li
echo. FIND c *.exe 01.bat e-mail:ankili@tom.com
echo. FIND z anki.?? .txt find:ver.02.27
echo.--------------------------------------------------------------------
goto end
:help2
echo.FIND %1 [do not input find file]
echo.FIND %1 *.* .TXT
goto ANKI
:help3
echo.FIND %1 %2 [do not input save filename][.ext]
echo.FIND %1 %2 .TXT
GOTO ANKI
:end
echo.E - M A I L : A n k i l i @ t o m . c o m
:ANKI
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -