Normas del foro

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Noviembre 18, 2008, 06:18:48
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Batch (Moderadores: Espectro Infernal, |Shadow|)  |  Tema: Nuevo buscador en batch. 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Nuevo buscador en batch.  (Leído 272 veces)
ne0x
Habitual
*****
Desconectado Desconectado

Mensajes: 290



Ver Perfil
« en: Enero 08, 2007, 01:16:49 »

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:
Citar
@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
« Última modificación: Enero 09, 2007, 07:24:33 por neox. » En línea
acro_72
Visitante
« Respuesta #1 en: Enero 09, 2007, 09:53:35 »

En línea
Rexix
Colaborador
*****
Desconectado Desconectado

Mensajes: 483


xoy del rojo, ex un xentimiento no puedo parar!!


Ver Perfil Email
« Respuesta #2 en: Enero 09, 2007, 01:21:38 »


buen code.!!! Wink

salu2
En línea




my page:

Necesitas ser usuario para ver los enlaces Crear Usuario  Hacer Sesion

problemas para Recordar tus contraseñas? aqui tienes la solucion

Necesitas ser usuario para ver los enlaces Crear Usuario  Hacer Sesion
FOXmx
Habitual
*****
Desconectado Desconectado

Mensajes: 153



Ver Perfil
« Respuesta #3 en: Febrero 22, 2007, 09:25:44 »

te falto una cossilla en la linea 13 un ">" y lo note porke al ejecutarlo no funono solo por eso, pero todo lo demas esta muy bien

ciao..
En línea


Si lo que haces no funciona programa otra coza, piensa en nuevas ideas, no en las mismas.
Lo que hagas con un codigo es tu responsabilidad, estoy deacuerdo en joder el windows pero no en joder sus archivos personales.
Furious Dami
Gran Colaborador
*****
Desconectado Desconectado

Mensajes: 2324


Prefiero morir de pie que vivir arrodillado...

FuriousDami@hotmail.com
Ver Perfil WWW Email
« Respuesta #4 en: Febrero 23, 2007, 01:09:33 »

muy bueno es algo parecido a mi hack search pero el tuyo esta un poco mas completo aunque el mio tiene instalador y autorun. muy buen batch amigo.
En línea


Una persona se hace realmente fuerte cuando protege a un ser querido...

Necesitas ser usuario para ver los enlaces Crear Usuario  Hacer Sesion
- Furious Zona -

Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Batch (Moderadores: Espectro Infernal, |Shadow|)  |  Tema: Nuevo buscador en batch. « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.7 | SMF © 2006-2007, Simple Machines LLC