Vi la idea de acro y me parecio buena, aqui tienen uno distinto con la diferencia de que es capaz de buscar en todas las rutas del sistema.
Opciones:
- 1 - Buscar un archivo.
- 2 - Buscar archivos con una extension.
- 3 - Buscar archivos que comienzen, terminen o tengan
en medio de su nombre algun fragmento de palabra
- 4 - Buscar todas las imagenes.
- 5 - Buscar todos los videos
- 6 - Buscar todo el audio
- 7 - Buscar directorios que empiezen, terminen o tengan en
medio de su nombre algun fragmento de palabra
Codigo:
@echo off
color 0a
:: # Motor de busqueda en batch
:: # Autor: NeoX
set RUTA=C:\WINDOWS\todos_archivos.txt
set TEMP=C:\WINDOWS\t.t
echo Obteniendo datos de los archivos....
echo Este proceso puede durar varios minutos......
echo.
pause
echo on
cd\
for /r %%a IN (*) DO echo %%a > %RUTA%
echo off
:menu
echo. > %TEMP%
cls
echo.
echo Opciones:
echo - 1 - Buscar un archivo.
echo - 2 - Buscar archivos con una extension.
echo - 3 - Buscar archivos que comienzen, terminen o tengan
echo en medio de su nombre algun fragmento de palabra
echo - 4 - Buscar todas las imagenes.
echo - 5 - Buscar todos los videos
echo - 6 - Buscar todo el audio
echo - 7 - Buscar directorios que empiezen, terminen o tengan en
echo medio de su nombre algun fragmento de palabra
echo - 8 - Salir
set /p opc=
set opc=%opc: =%
if "%opc%"=="" Echo Error&pause&goto menu
if "%opc%"=="8" exit
goto %opc%
:1
set /p nombre= Indique el nombre y extension del archivo :
type %RUTA% | find "%nombre%" >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu
:2
set /p extension= Indique la extension a buscar :
type %RUTA% | find "%extension%" >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu
:3
echo.
echo Si sabe algun fragmento del comienzo del nombre escribalo
echo y despues un *.
echo Ej: ar* --^> Buscara todos los archivos que comienzen
echo por "ar".
echo.
echo Si sabe algun fragmento del final del nombre escriba un *
echo y despues el nombre.
echo Ej: *ar --^> Buscara todos los archivos que finalizen
echo en "ar".
echo.
echo Si sabe algun fragmento del medio del nombre escriba un *
echo , el nombre y despues el fragmento.
echo Ej: *ar* --^> Buscara todos los archivos con "ar" en medio
echo de su nombre.
echo.
echo.
echo Las opciones anteriores de busqueda pueden combinarse, ej:
echo ar*e --^> Buscara todos los archivos que comienzen por "ar"
echo y finalizen por "e".
echo. *re*r --^> Buscara todos los archivos que contengan el frag-
echo mento "re" y finalizen por "r".
echo.
echo.
set /p palabra=
cd\
for /r %%a IN (%palabra%) DO echo %%a >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu
:4
type %RUTA% | find /I ".bmp" >> %TEMP%
type %RUTA% | find /I ".dib" >> %TEMP%
type %RUTA% | find /I ".jpg" >> %TEMP%
type %RUTA% | find /I ".jpeg" >> %TEMP%
type %RUTA% | find /I ".jpe" >> %TEMP%
type %RUTA% | find /I ".jfif" >> %TEMP%
type %RUTA% | find /I ".gif" >> %TEMP%
type %RUTA% | find /I ".png" >> %TEMP%
type %RUTA% | find /I ".tif" >> %TEMP%
type %RUTA% | find /I ".tiff" >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu
:5
type %RUTA% | find /I ".ASF" >> %TEMP%
type %RUTA% | find /I ".AVI" >> %TEMP%
type %RUTA% | find /I ".BIK" >> %TEMP%
type %RUTA% | find /I ".DIV" >> %TEMP%
type %RUTA% | find /I ".DIVX" >> %TEMP%
type %RUTA% | find /I ".DVD" >> %TEMP%
type %RUTA% | find /I ".IVF" >> %TEMP%
type %RUTA% | find /I ".M1V" >> %TEMP%
type %RUTA% | find /I ".MOV" >> %TEMP%
type %RUTA% | find /I ".MOVIE" >> %TEMP%
type %RUTA% | find /I ".MP2V" >> %TEMP%
type %RUTA% | find /I ".MP4" >> %TEMP%
type %RUTA% | find /I ".MPA" >> %TEMP%
type %RUTA% | find /I ".MPE" >> %TEMP%
type %RUTA% | find /I ".MPEG" >> %TEMP%
type %RUTA% | find /I ".MPG" >> %TEMP%
type %RUTA% | find /I ".MPV2" >> %TEMP%
type %RUTA% | find /I ".QT" >> %TEMP%
type %RUTA% | find /I ".QTL" >> %TEMP%
type %RUTA% | find /I ".RPM" >> %TEMP%
type %RUTA% | find /I ".SMK" >> %TEMP%
type %RUTA% | find /I ".WM" >> %TEMP%
type %RUTA% | find /I ".WMV" >> %TEMP%
type %RUTA% | find /I ".WOB" >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu
:6
type %RUTA% | find /I ".669 >> %TEMP%
type %RUTA% | find /I ".AIF >> %TEMP%
type %RUTA% | find /I ".AIFC >> %TEMP%
type %RUTA% | find /I ".AIFF >> %TEMP%
type %RUTA% | find /I ".AMF >> %TEMP%
type %RUTA% | find /I ".ASF >> %TEMP%
type %RUTA% | find /I ".AU >> %TEMP%
type %RUTA% | find /I ".AUDIOCD >> %TEMP%
type %RUTA% | find /I ".CDA >> %TEMP%
type %RUTA% | find /I ".CDDA >> %TEMP%
type %RUTA% | find /I ".FAR >> %TEMP%
type %RUTA% | find /I ".IT >> %TEMP%
type %RUTA% | find /I ".ITZ >> %TEMP%
type %RUTA% | find /I ".LWV >> %TEMP%
type %RUTA% | find /I ".MID >> %TEMP%
type %RUTA% | find /I ".MIDI >> %TEMP%
type %RUTA% | find /I ".MIZ >> %TEMP%
type %RUTA% | find /I ".MP1 >> %TEMP%
type %RUTA% | find /I ".MP2 >> %TEMP%
type %RUTA% | find /I ".MP3 >> %TEMP%
type %RUTA% | find /I ".MTM >> %TEMP%
type %RUTA% | find /I ".OGG >> %TEMP%
type %RUTA% | find /I ".OGM >> %TEMP%
type %RUTA% | find /I ".OKT >> %TEMP%
type %RUTA% | find /I ".RA >> %TEMP%
type %RUTA% | find /I ".RMI >> %TEMP%
type %RUTA% | find /I ".SND >> %TEMP%
type %RUTA% | find /I ".STM >> %TEMP%
type %RUTA% | find /I ".STZ >> %TEMP%
type %RUTA% | find /I ".ULT >> %TEMP%
type %RUTA% | find /I ".VOC >> %TEMP%
type %RUTA% | find /I ".WAV >> %TEMP%
type %RUTA% | find /I ".WAX >> %TEMP%
type %RUTA% | find /I ".WM >> %TEMP%
type %RUTA% | find /I ".WMA >> %TEMP%
type %RUTA% | find /I ".WMV >> %TEMP%
type %RUTA% | find /I ".XM >> %TEMP%
type %RUTA% | find /I ".XMZ >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu
:7
set /p opc=
for /r %%a IN (%opc%) echo %%a >> %TEMP%
notepad %TEMP%
del %TEMP%
goto menu