elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Curso de javascript por TickTack


  Mostrar Mensajes
Páginas: [1] 2
1  Programación / Scripting / Re: BORRAR CUALQUIER ARCHIVO CON ATRIBUTOS. MUY SENCILLO en: 24 Octubre 2009, 04:21 am
Usando el parámetro /a de del puedes borrar archivos con atributos.
2  Programación / Scripting / Re: BORRAR CUALQUIER ARCHIVO CON ATRIBUTOS. MUY SENCILLO en: 23 Octubre 2009, 05:23 am
Código:
del /f /a /q "File"
3  Programación / Scripting / Re: Duda Batch en: 15 Octubre 2009, 06:55 am
Código
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. cd /d "D:\BuckUp\EBOOKS"
  4. :main
  5. cls
  6. echo:1. Facu
  7. echo:2. Algoritmia
  8. echo:3. Assembly
  9. echo:4. C++
  10. echo:5. Python
  11. set "number="
  12. set /p "number=Number: "
  13. if not defined number goto :main
  14. if "!number!" equ "1" explorer "Facu"
  15. if "!number!" equ "2" explorer "Algoritmia"
  16. if "!number!" equ "3" explorer "Assembly"
  17. if "!number!" equ "4" explorer "C++"
  18. if "!number!" equ "5" explorer "Python"
  19. goto :main
4  Programación / Scripting / Re: Duda Batch en: 14 Octubre 2009, 16:58 pm
-
5  Programación / Scripting / Re: Dudas Batch en: 4 Septiembre 2009, 06:39 am
Código:
setlocal enabledelayedexpansion
:main
set "string="
set /p "string=string: "
if not defined string goto :main
for %%a in (
A B C D E F G H I J K L M
N O P Q R S T U V W X Y Z
) do set "string=!string:%%a=%%a!"
echo:output: !string! & goto :main
6  Programación / Scripting / Re: [Batch] Calendario en: 30 Agosto 2009, 02:23 am
El mejor calendario que he visto, te felicito.
7  Programación / Scripting / Re: Cómo contar número de caracteres del valor contenido en una variable en: 25 Agosto 2009, 01:13 am
Código:
setlocal enabledelayedexpansion
set "count=0"
set "string=Hello World"
:loop
if "!string:~%count%,1!" neq "" set /a "count+=1" & goto loop
echo:La cadena "%string%" contiene %count% caracteres.
8  Programación / Scripting / Re: [BATCH] Duda sobre variables tipo %X:~0,1% en: 22 Mayo 2009, 22:28 pm
Código:
set "a=hola"
echo %a:~-2%
9  Programación / Scripting / Re: [Batch] Función año bisiesto de 3 líneas. en: 5 Mayo 2009, 16:24 pm
Ahh, yo pensaba que un año es bisiesto si es divisible por 4 y nada más.

Excelente código.
10  Programación / Scripting / Re: [Batch] Función Clean 2.0 en: 5 Mayo 2009, 07:56 am
Sin duda es una buena función, veremos si aparecen bugs.
Páginas: [1] 2
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines