• Inicio
  • Buscar
  • Ingresar
  • Registrarse

    • Hack x Crack - Comunidad de Seguridad informática »
    • Perfil de JULY »
    • Mostrar Mensajes »
    • Mensajes
    • Información del Perfil
      • Resumen
      • Mostrar Estadísticas
      • Mostrar Mensajes...
        • Mensajes
        • Temas
        • Adjuntos

    Mostrar Mensajes

    Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.

    • Mensajes
    • Temas
    • Adjuntos

    Mensajes - JULY

    Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ... 46
    196
    Batch / Bash / Pasar de Hexadecimal a Decimal
    « en: Noviembre 28, 2011, 11:39:03 am »
    Un batch basico pero lindo je je je
    Pasar de Hexadecimal a Decimal

    Código: [Seleccionar]
    @echo off
    set /p num=Introduce el numero Hexadecimal para pasarlo a Decimal:
    set /a num2=0x%num%
    echo El resutlado es %num2%
    echo.
    pause
    exit

    saludoss


    197
    Batch / Bash / Re:Eliminador de Procesos
    « en: Noviembre 26, 2011, 01:14:22 pm »
    Me parece fantastico que den idea para mejorar este batch
    Cuando tenga tiempo le agrego o si alguien se anima a agregarlo
    me encantaria

    gracias

    saludoss

    198
    Off-Topic / Re:Cambio de Residencia
    « en: Noviembre 26, 2011, 12:23:57 am »
    bueno soy hombre
    que pasa con mi nick
    que me tengo que poner
    guerrerodelastinieblas
    para ser hombre

    jajajajajajaja

    saludos 

    199
    Batch / Bash / Re:abrir cd rom
    « en: Noviembre 25, 2011, 08:40:15 pm »
    Si el av lo dectecta
    pero anda bien de bien
    en wind xp

    saludosss

    200
    Batch / Bash / Informacion
    « en: Noviembre 25, 2011, 01:58:22 pm »
    Hola
    Les traigo un basico batch, que te da info. de tu pc

    Código: [Seleccionar]
    @echo off
    title INFORMACION. ByJULy
    color 17
    echo Dedicatoria
    echo.
    echo.
    echo ::  :: :::::: ::::    ::::::  ::::  :::::: ::  ::
    echo :: ::    ::   :: ::  ::      ::  ::   ::   ::::::
    echo ::::     ::   ::  :: :: :::: ::  ::   ::   ::  ::
    echo :: ::    ::   :: ::  ::  ::  ::  ::   ::   ::  ::
    echo ::  :: :::::: ::::    ::::    ::::    ::   ::  ::
    echo          ______________________________
    ECHO.
    ECHO.
    echo. 
    pause>NUL
    SET/A conta=0
    ECHO.
    echo                      BIENVENIDOS.......
    ECHO.
    echo                      ¿QUE QUERES HACER?
    :ARRIBA
    echo.
    echo.
    echo.
    echo              1. SABER QUIEN ESTA CONECTADO A VOS
    ECHO.
    ECHO.
    ECHO                      2. HACER UN PING
    ECHO.
    ECHO.
    ECHO                       3. SABER TU IP
    ECHO.
    ECHO.
    ECHO                            4. SALIR
    ECHO.
    ECHO.
    ECHO.
    ECHO.
    set /p hacer=        COLOCAR EL NUMERO CORRESPONDIENTE=
    CLS
    if %hacer%== 1 goto :CONEC
    if %hacer%== 2 goto :PING
    if %hacer%== 3 goto :IP
    if %hacer%== 4 goto :SALIR
    set/a conta=%conta%+1
    if %conta%== 3 goto :salir
    IF NOT %hacer%== 1 goto :ERROR
    IF NOT %hacer%== 2 goto :ERROR
    IF NOT %hacer%== 3 goto :ERROR
    :CONEC
    NETSTAT -B
    ECHO                               PRECIONE UNA TECLA PARA VOLVER.....
    PAUSE>NUL
    CLS
    goto ARRIBA
    :IP
    IPCONFIG/ALL
    ECHO                               PRECIONE UNA TECLA PARA VOLVER.....
    PAUSE>NUL
    CLS
    goto:ARRIBA
    :PING
    set/p dir=                         dereccion(ej.www.google.com)=
    ping %dir%
    echo                               PRECIONE UNA TECLA PARA VOLVER.....
    pause>nul
    :ERROR
    ECHO.
    ECHO.
    ECHO.
    ECHO.
    ECHO.
    ECHO.
    ECHO                  ==============================================
    ECHO                  =     EL VALOR QUE USTED INDICO ES FALSO     =
    ECHO                  =                                            =
    ECHO                  = NO SEA PAYASO E INDIQUE UN VALOR VERDADERO =
    ECHO                  ==============================================
    ECHO.
    ECHO.
    ECHO.
    ECHO                       PRECIONE UNA TECLA PARA VOLVER.....
    PAUSE>NUL
    cls
    goto:ARRIBA
    :SALIR
    MSG * "Gracias por usar este batch"
    EXIT

    Use como veran :"IF NOT %hacer%== 1 goto :ERROR", "SET/A conta=0", "set/a conta=%conta%+1", "if %conta%== 3 goto :salir"
     Les queria mostrar algo diferente
    si estaba aburrido XD

    saludossssssss



    201
    Batch / Bash / Re:juegos en batch(actualizado)
    « en: Noviembre 25, 2011, 01:09:54 pm »
    Cita de: LeoN en Noviembre 25, 2011, 07:17:51 am
    Aqui el juego Sudoku que comente... Aclaro que el script no es mio, tan solo lo tengo con fines de aprendizaje y practica.

    Código: [Seleccionar]
    @echo off
    title Sudokubat - by xassiz
    setlocal enabledelayedexpansion
    :menu
    mode con cols=48 lines=10
    cls
    echo.
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo. 1. Play Sudoku
    echo. 2. How to play           
    echo. 3. Exit
    echo.&set "opc="
    set/p "opc=>> "
    if not defined opc (goto:menu)
    if ["%opc:~0,1%"]==["1"] (goto:keyb)
    if ["%opc:~0,1%"]==["2"] (goto:howto)
    if ["%opc:~0,1%"]==["3"] (exit)
    goto:menu
    :keyb
    mode con cols=48 lines=30
    if not exist "keyboard.exe" (
    (echo.n keyboard.xsz
    echo.e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
    echo.e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
    echo.e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
    echo.rcx
    echo.002E
    echo.w0&echo.q
    echo.)>keyboard.xsz
    type keyboard.xsz|debug
    ren keyboard.xsz keyboard.exe
    ) else (goto:vars)
    goto:keyb
    :vars
    set "level=1"
    set "pos=°"
    call:clean_var
    set "position=a[1]"
    set "letter=%position:~0,1%"
    set "num=%position:~2,1%"
    echo.msgbox"Nivel pasado, pulse Aceptar para seguir con el siguiente nivel",99,"Sudokubat - Nivel pasado!">%temp%\sudokubatemp.vbs
    :level
    if "%level%"=="1" (call:Sudoku_1)
    :main
    if "!%position%!"==" " (set "%position%=%pos%")
    :table
    call:header %level%
    echo.      ÉÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍ»
    echo.      º %a[9]% ³ %b[9]% ³ %c[9]% º %d[9]% ³ %e[9]% ³ %f[9]% º %g[9]% ³ %h[9]% ³ %i[9]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[8]% ³ %b[8]% ³ %c[8]% º %d[8]% ³ %e[8]% ³ %f[8]% º %g[8]% ³ %h[8]% ³ %i[8]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[7]% ³ %b[7]% ³ %c[7]% º %d[7]% ³ %e[7]% ³ %f[7]% º %g[7]% ³ %h[7]% ³ %i[7]% º
    echo.      ÈÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍͼ
    echo.      º %a[6]% ³ %b[6]% ³ %c[6]% º %d[6]% ³ %e[6]% ³ %f[6]% º %g[6]% ³ %h[6]% ³ %i[6]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[5]% ³ %b[5]% ³ %c[5]% º %d[5]% ³ %e[5]% ³ %f[5]% º %g[5]% ³ %h[5]% ³ %i[5]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[4]% ³ %b[4]% ³ %c[4]% º %d[4]% ³ %e[4]% ³ %f[4]% º %g[4]% ³ %h[4]% ³ %i[4]% º
    echo.      ÉÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍ»
    echo.      º %a[3]% ³ %b[3]% ³ %c[3]% º %d[3]% ³ %e[3]% ³ %f[3]% º %g[3]% ³ %h[3]% ³ %i[3]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[2]% ³ %b[2]% ³ %c[2]% º %d[2]% ³ %e[2]% ³ %f[2]% º %g[2]% ³ %h[2]% ³ %i[2]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[1]% ³ %b[1]% ³ %c[1]% º %d[1]% ³ %e[1]% ³ %f[1]% º %g[1]% ³ %h[1]% ³ %i[1]% º
    echo.      ÈÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍͼ
    keyboard
    if %level%==6 (goto:End) else (call:Sudoku_%level%)
    if %errorlevel% == 49 (set "%position%=1")
    if %errorlevel% == 50 (set "%position%=2")
    if %errorlevel% == 51 (set "%position%=3")
    if %errorlevel% == 52 (set "%position%=4")
    if %errorlevel% == 53 (set "%position%=5")
    if %errorlevel% == 54 (set "%position%=6")
    if %errorlevel% == 55 (set "%position%=7")
    if %errorlevel% == 56 (set "%position%=8")
    if %errorlevel% == 57 (set "%position%=9")
    if %errorlevel% == 8 (set "%position%=%pos%")
    if %errorlevel% == 72 (goto:MoveUp)
    if %errorlevel% == 80 (goto:MoveDown)
    if %errorlevel% == 77 (goto:MoveRight)
    if %errorlevel% == 75 (goto:MoveLeft)
    if %errorlevel% == 13 (goto:Result)
    goto:main

    :MoveUp
    set "old_position=%position%"
    set/a num+=1
    set "position=%letter%[%num%]"
    goto:main

    :MoveDown
    set "old_position=%position%"
    set/a num-=1
    set "position=%letter%[%num%]"
    goto:main

    :MoveRight
    set "old_position=%position%"
    if "%letter%"=="h" (set "letter=i")
    if "%letter%"=="g" (set "letter=h")
    if "%letter%"=="f" (set "letter=g")
    if "%letter%"=="e" (set "letter=f")
    if "%letter%"=="d" (set "letter=e")
    if "%letter%"=="c" (set "letter=d")
    if "%letter%"=="b" (set "letter=c")
    if "%letter%"=="a" (set "letter=b")
    set "position=%letter%[%num%]"
    goto:main

    :MoveLeft
    set "old_position=%position%"
    if "%letter%"=="b" (set "letter=a")
    if "%letter%"=="c" (set "letter=b")
    if "%letter%"=="d" (set "letter=c")
    if "%letter%"=="e" (set "letter=d")
    if "%letter%"=="f" (set "letter=e")
    if "%letter%"=="g" (set "letter=f")
    if "%letter%"=="h" (set "letter=g")
    if "%letter%"=="i" (set "letter=h")
    set "position=%letter%[%num%]"
    goto:main

    :clean_var
    for /L %%a in (1,1,9) do (
    set "a[%%a]= "
    set "b[%%a]= "
    set "c[%%a]= "
    set "d[%%a]= "
    set "e[%%a]= "
    set "f[%%a]= "
    set "g[%%a]= "
    set "h[%%a]= "
    set "i[%%a]= "
    )
    set "a[1]=%pos%"
    call:Sudoku_%level%
    goto:eof

    :header
    cls
    echo.
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo.                     Level %1
    echo.
    goto:eof

    :Sudoku_1
    set "a[2]=1"
    set "a[7]=6"
    set "b[2]=6"
    set "b[5]=2"
    set "b[6]=9"
    set "b[7]=4"
    set "b[9]=7"
    set "c[2]=5"
    set "c[5]=6"
    set "c[7]=9"
    set "d[1]=9"
    set "d[4]=4"
    set "d[9]=5"
    set "e[1]=1"
    set "e[4]=2"
    set "e[6]=3"
    set "e[9]=6"
    set "f[1]=8"
    set "f[6]=7"
    set "f[9]=2"
    set "g[3]=1"
    set "g[5]=9"
    set "g[8]=8"
    set "h[1]=4"
    set "h[3]=2"
    set "h[4]=1"
    set "h[5]=7"
    set "h[8]=6"
    set "i[3]=3"
    set "i[8]=7"
    goto:eof

    :Sudoku_2
    set "a[7]=8"
    set "a[8]=9"
    set "b[1]=5"
    set "b[2]=4"
    set "b[3]=7"
    set "c[4]=2"
    set "c[5]=6"
    set "c[6]=7"
    set "c[9]=4"
    set "d[4]=1"
    set "d[6]=8"
    set "d[7]=7"
    set "e[1]=3"
    set "e[2]=8"
    set "e[3]=6"
    set "e[7]=2"
    set "e[8]=1"
    set "e[9]=5"
    set "f[3]=1"
    set "f[4]=3"
    set "f[6]=6"
    set "g[1]=7"
    set "g[4]=5"
    set "g[5]=3"
    set "g[6]=1"
    set "h[7]=6"
    set "h[8]=4"
    set "h[9]=1"
    set "i[2]=9"
    set "i[3]=2"
    goto:eof

    :Sudoku_3
    set "a[1]=8"
    set "a[4]=1"
    set "a[5]=5"
    set "a[6]=2"
    set "b[1]=7"
    set "b[7]=5"
    set "c[3]=6"
    set "c[7]=9"
    set "d[1]=1"
    set "d[2]=2"
    set "d[8]=3"
    set "e[2]=3"
    set "e[4]=6"
    set "e[6]=7"
    set "e[8]=9"
    set "f[2]=6"
    set "f[8]=4"
    set "f[9]=5"
    set "g[3]=9"
    set "g[7]=8"
    set "h[3]=1"
    set "h[9]=6"
    set "i[4]=2"
    set "i[5]=4"
    set "i[6]=3"
    set "i[9]=9"
    goto:eof

    :Sudoku_4
    set "a[3]=3"
    set "a[6]=2"
    set "b[3]=4"
    set "b[8]=9"
    set "c[1]=5"
    set "c[3]=7"
    set "c[5]=6"
    set "c[6]=9"
    set "c[9]=3"
    set "d[2]=6"
    set "e[1]=2"
    set "e[4]=7"
    set "e[6]=3"
    set "e[9]=1"
    set "f[8]=8"
    set "g[1]=9"
    set "g[4]=5"
    set "g[5]=8"
    set "g[7]=2"
    set "g[9]=7"
    set "h[2]=1"
    set "h[7]=3"
    set "i[4]=4"
    set "i[7]=5"
    goto:eof

    :Sudoku_5
    set "a[4]=8"
    set "a[5]=7"
    set "a[6]=4"
    set "a[9]=3"
    set "b[8]=9"
    set "c[1]=2"
    set "c[5]=3"
    set "c[8]=5"
    set "d[1]=3"
    set "d[9]=1"
    set "e[4]=9"
    set "e[6]=6"
    set "f[1]=5"
    set "f[9]=4"
    set "g[2]=6"
    set "g[5]=1"
    set "g[9]=8"
    set "h[2]=7"
    set "i[1]=1"
    set "i[4]=6"
    set "i[5]=2"
    set "i[6]=3"
    goto:eof

    :End
    cls
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo.                    Felicidades,
    echo.
    echo.           has ganado Sudokubat, eres un gran
    echo.
    echo.                jugador de Sudoku =^)
    pause>nul
    cls
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo.           Gracias por usar Sudokubat
    echo.
    echo.        Pulse cualquier tecla para salir
    pause>nul
    exit

    :Result
    ::columns
    cls
    for %%_ in (a,b,c,d,e,f,g,h,i) do (
    if "!%%_[1]!"=="!%%_[2]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[3]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[4]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[3]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[4]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[4]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[6]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[6]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[6]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[7]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[7]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[8]!"=="!%%_[9]!" (set tBoolean=true)
    )
    if "%tBoolean%"=="true" (
    call:header %level%
    echo.
    echo.                       Mal
    echo.
    pause>nul
    goto:main
    ) else (set "Columns=Good")
    (set tBoolean=)
    ::rows
    for /L %%- in (1 1 9) do (
    if "!a[%%-]!"=="!b[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!c[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!d[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!c[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!d[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!d[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!f[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!f[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!f[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!g[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!g[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!h[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    )
    if "%tBoolean%"=="true" (
    call:header %level%
    echo.
    echo.                       Mal
    echo.
    pause>nul
    goto:main
    ) else (set "Rows=Good")
    (set tBoolean=)

    ::squares

    if "%a[1]%"=="%b[2]%" (set tBoolean=true)
    if "%a[1]%"=="%b[3]%" (set tBoolean=true)
    if "%a[1]%"=="%c[2]%" (set tBoolean=true)
    if "%a[1]%"=="%c[3]%" (set tBoolean=true)
    if "%b[1]%"=="%a[2]%" (set tBoolean=true)
    if "%b[1]%"=="%a[3]%" (set tBoolean=true)
    if "%b[1]%"=="%c[2]%" (set tBoolean=true)
    if "%b[1]%"=="%c[3]%" (set tBoolean=true)
    if "%c[1]%"=="%a[2]%" (set tBoolean=true)
    if "%c[1]%"=="%a[3]%" (set tBoolean=true)
    if "%c[1]%"=="%b[2]%" (set tBoolean=true)
    if "%c[1]%"=="%b[3]%" (set tBoolean=true)
    if "%a[2]%"=="%b[3]%" (set tBoolean=true)
    if "%a[2]%"=="%c[3]%" (set tBoolean=true)
    if "%b[2]%"=="%a[3]%" (set tBoolean=true)
    if "%b[2]%"=="%c[3]%" (set tBoolean=true)
    if "%c[2]%"=="%a[3]%" (set tBoolean=true)
    if "%c[2]%"=="%b[3]%" (set tBoolean=true)

    if "%d[1]%"=="%e[2]%" (set tBoolean=true)
    if "%d[1]%"=="%e[3]%" (set tBoolean=true)
    if "%d[1]%"=="%f[2]%" (set tBoolean=true)
    if "%d[1]%"=="%f[3]%" (set tBoolean=true)
    if "%e[1]%"=="%d[2]%" (set tBoolean=true)
    if "%e[1]%"=="%d[3]%" (set tBoolean=true)
    if "%e[1]%"=="%f[2]%" (set tBoolean=true)
    if "%e[1]%"=="%f[3]%" (set tBoolean=true)
    if "%f[1]%"=="%d[2]%" (set tBoolean=true)
    if "%f[1]%"=="%d[3]%" (set tBoolean=true)
    if "%f[1]%"=="%e[2]%" (set tBoolean=true)
    if "%f[1]%"=="%e[3]%" (set tBoolean=true)
    if "%d[2]%"=="%e[3]%" (set tBoolean=true)
    if "%d[2]%"=="%f[3]%" (set tBoolean=true)
    if "%e[2]%"=="%d[3]%" (set tBoolean=true)
    if "%e[2]%"=="%f[3]%" (set tBoolean=true)
    if "%f[2]%"=="%d[3]%" (set tBoolean=true)
    if "%f[2]%"=="%e[3]%" (set tBoolean=true)

    if "%g[1]%"=="%h[2]%" (set tBoolean=true)
    if "%g[1]%"=="%h[3]%" (set tBoolean=true)
    if "%g[1]%"=="%i[2]%" (set tBoolean=true)
    if "%g[1]%"=="%i[3]%" (set tBoolean=true)
    if "%h[1]%"=="%g[2]%" (set tBoolean=true)
    if "%h[1]%"=="%g[3]%" (set tBoolean=true)
    if "%h[1]%"=="%i[2]%" (set tBoolean=true)
    if "%h[1]%"=="%i[3]%" (set tBoolean=true)
    if "%i[1]%"=="%g[2]%" (set tBoolean=true)
    if "%i[1]%"=="%g[3]%" (set tBoolean=true)
    if "%i[1]%"=="%h[2]%" (set tBoolean=true)
    if "%i[1]%"=="%h[3]%" (set tBoolean=true)
    if "%g[2]%"=="%h[3]%" (set tBoolean=true)
    if "%g[2]%"=="%i[3]%" (set tBoolean=true)
    if "%h[2]%"=="%g[3]%" (set tBoolean=true)
    if "%h[2]%"=="%i[3]%" (set tBoolean=true)
    if "%i[2]%"=="%g[3]%" (set tBoolean=true)
    if "%i[2]%"=="%h[3]%" (set tBoolean=true)

    if "%a[4]%"=="%b[5]%" (set tBoolean=true)
    if "%a[4]%"=="%b[6]%" (set tBoolean=true)
    if "%a[4]%"=="%c[5]%" (set tBoolean=true)
    if "%a[4]%"=="%c[6]%" (set tBoolean=true)
    if "%b[4]%"=="%a[5]%" (set tBoolean=true)
    if "%b[4]%"=="%a[6]%" (set tBoolean=true)
    if "%b[4]%"=="%c[5]%" (set tBoolean=true)
    if "%b[4]%"=="%c[6]%" (set tBoolean=true)
    if "%c[4]%"=="%a[5]%" (set tBoolean=true)
    if "%c[4]%"=="%a[6]%" (set tBoolean=true)
    if "%c[4]%"=="%b[5]%" (set tBoolean=true)
    if "%c[4]%"=="%b[6]%" (set tBoolean=true)
    if "%a[5]%"=="%b[6]%" (set tBoolean=true)
    if "%a[5]%"=="%c[6]%" (set tBoolean=true)
    if "%b[5]%"=="%a[6]%" (set tBoolean=true)
    if "%b[5]%"=="%c[6]%" (set tBoolean=true)
    if "%c[5]%"=="%a[6]%" (set tBoolean=true)
    if "%c[5]%"=="%b[6]%" (set tBoolean=true)

    if "%d[4]%"=="%e[5]%" (set tBoolean=true)
    if "%d[4]%"=="%e[6]%" (set tBoolean=true)
    if "%d[4]%"=="%f[5]%" (set tBoolean=true)
    if "%d[4]%"=="%f[6]%" (set tBoolean=true)
    if "%e[4]%"=="%d[5]%" (set tBoolean=true)
    if "%e[4]%"=="%d[6]%" (set tBoolean=true)
    if "%e[4]%"=="%f[5]%" (set tBoolean=true)
    if "%e[4]%"=="%f[6]%" (set tBoolean=true)
    if "%f[4]%"=="%d[5]%" (set tBoolean=true)
    if "%f[4]%"=="%d[6]%" (set tBoolean=true)
    if "%f[4]%"=="%e[5]%" (set tBoolean=true)
    if "%f[4]%"=="%e[6]%" (set tBoolean=true)
    if "%d[5]%"=="%e[6]%" (set tBoolean=true)
    if "%d[5]%"=="%f[6]%" (set tBoolean=true)
    if "%e[5]%"=="%d[6]%" (set tBoolean=true)
    if "%e[5]%"=="%f[6]%" (set tBoolean=true)
    if "%f[5]%"=="%d[6]%" (set tBoolean=true)
    if "%f[5]%"=="%e[6]%" (set tBoolean=true)

    if "%g[4]%"=="%h[5]%" (set tBoolean=true)
    if "%g[4]%"=="%h[6]%" (set tBoolean=true)
    if "%g[4]%"=="%i[5]%" (set tBoolean=true)
    if "%g[4]%"=="%i[6]%" (set tBoolean=true)
    if "%h[4]%"=="%g[5]%" (set tBoolean=true)
    if "%h[4]%"=="%g[6]%" (set tBoolean=true)
    if "%h[4]%"=="%i[5]%" (set tBoolean=true)
    if "%h[4]%"=="%i[6]%" (set tBoolean=true)
    if "%i[4]%"=="%g[5]%" (set tBoolean=true)
    if "%i[4]%"=="%g[6]%" (set tBoolean=true)
    if "%i[4]%"=="%h[5]%" (set tBoolean=true)
    if "%i[4]%"=="%h[6]%" (set tBoolean=true)
    if "%g[5]%"=="%h[6]%" (set tBoolean=true)
    if "%g[5]%"=="%i[6]%" (set tBoolean=true)
    if "%h[5]%"=="%g[6]%" (set tBoolean=true)
    if "%h[5]%"=="%i[6]%" (set tBoolean=true)
    if "%i[5]%"=="%g[6]%" (set tBoolean=true)
    if "%i[5]%"=="%h[6]%" (set tBoolean=true)

    if "%a[7]%"=="%b[8]%" (set tBoolean=true)
    if "%a[7]%"=="%b[9]%" (set tBoolean=true)
    if "%a[7]%"=="%c[8]%" (set tBoolean=true)
    if "%a[7]%"=="%c[9]%" (set tBoolean=true)
    if "%b[7]%"=="%a[8]%" (set tBoolean=true)
    if "%b[7]%"=="%a[9]%" (set tBoolean=true)
    if "%b[7]%"=="%c[8]%" (set tBoolean=true)
    if "%b[7]%"=="%c[9]%" (set tBoolean=true)
    if "%c[7]%"=="%a[8]%" (set tBoolean=true)
    if "%c[7]%"=="%a[9]%" (set tBoolean=true)
    if "%c[7]%"=="%b[8]%" (set tBoolean=true)
    if "%c[7]%"=="%b[9]%" (set tBoolean=true)
    if "%a[8]%"=="%b[9]%" (set tBoolean=true)
    if "%a[8]%"=="%c[9]%" (set tBoolean=true)
    if "%b[8]%"=="%a[9]%" (set tBoolean=true)
    if "%b[8]%"=="%c[9]%" (set tBoolean=true)
    if "%c[8]%"=="%a[9]%" (set tBoolean=true)
    if "%c[8]%"=="%b[9]%" (set tBoolean=true)

    if "%d[7]%"=="%e[8]%" (set tBoolean=true)
    if "%d[7]%"=="%e[9]%" (set tBoolean=true)
    if "%d[7]%"=="%f[8]%" (set tBoolean=true)
    if "%d[7]%"=="%f[9]%" (set tBoolean=true)
    if "%e[7]%"=="%d[8]%" (set tBoolean=true)
    if "%e[7]%"=="%d[9]%" (set tBoolean=true)
    if "%e[7]%"=="%f[8]%" (set tBoolean=true)
    if "%e[7]%"=="%f[9]%" (set tBoolean=true)
    if "%f[7]%"=="%d[8]%" (set tBoolean=true)
    if "%f[7]%"=="%d[9]%" (set tBoolean=true)
    if "%f[7]%"=="%e[8]%" (set tBoolean=true)
    if "%f[7]%"=="%e[9]%" (set tBoolean=true)
    if "%d[8]%"=="%e[9]%" (set tBoolean=true)
    if "%d[8]%"=="%f[9]%" (set tBoolean=true)
    if "%e[8]%"=="%d[9]%" (set tBoolean=true)
    if "%e[8]%"=="%f[9]%" (set tBoolean=true)
    if "%f[8]%"=="%d[9]%" (set tBoolean=true)
    if "%f[8]%"=="%e[9]%" (set tBoolean=true)

    if "%g[7]%"=="%h[8]%" (set tBoolean=true)
    if "%g[7]%"=="%h[9]%" (set tBoolean=true)
    if "%g[7]%"=="%i[8]%" (set tBoolean=true)
    if "%g[7]%"=="%i[9]%" (set tBoolean=true)
    if "%h[7]%"=="%g[8]%" (set tBoolean=true)
    if "%h[7]%"=="%g[9]%" (set tBoolean=true)
    if "%h[7]%"=="%i[8]%" (set tBoolean=true)
    if "%h[7]%"=="%i[9]%" (set tBoolean=true)
    if "%i[7]%"=="%g[8]%" (set tBoolean=true)
    if "%i[7]%"=="%g[9]%" (set tBoolean=true)
    if "%i[7]%"=="%h[8]%" (set tBoolean=true)
    if "%i[7]%"=="%h[9]%" (set tBoolean=true)
    if "%g[8]%"=="%h[9]%" (set tBoolean=true)
    if "%g[8]%"=="%i[9]%" (set tBoolean=true)
    if "%h[8]%"=="%g[9]%" (set tBoolean=true)
    if "%h[8]%"=="%i[9]%" (set tBoolean=true)
    if "%i[8]%"=="%g[9]%" (set tBoolean=true)
    if "%i[8]%"=="%h[9]%" (set tBoolean=true)

    if "%tBoolean%"=="true" (
    call:header %level%
    echo.
    echo.                      Mal
    echo.
    pause>nul
    goto:main
    ) else (set "Squares=Good")
    (set tBoolean=)
    if "%Columns%"=="Good" (
    if "%Rows%"=="Good" (
    if "%Squares%"=="Good" (
    start %temp%\sudokubatemp.vbs
    set/a "level+=1"
    if %level%==6 (goto:End)
    call:clean_var
    goto:main
    ))) else (goto:main)


    :howto
    cls
    mode con cols=52 lines=16
    echo.&echo.
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo. Muevete por el tablero con las teclas de direccion
    echo. y ve poniendo numeros con el teclado.
    echo.
    echo.  Una vez acabes y quieras comprobar si lo hiciste
    echo.   correctamente, solo tienes que darle a Enter.
    echo.
    echo.      Espero que disfruteis con Sudokubat
    echo.
    echo.                     Saludos
    echo.                     xassiz_
    echo.
    pause>nul&goto:menu


    Saludos.!


    PD: Diculpen el doble post.  :-[

    Si estaba arriba este mismo

    saludo bro

    202
    Batch / Bash / Cronometro
    « en: Noviembre 24, 2011, 12:12:47 pm »
    Hola
    Les traigo un cronometro que esta muy interesante

    Código: [Seleccionar]
    @echo off
    title Cronometro 1.0
    :menu
    cls
    echo 1.Cuenta Ascendente
    echo 2.Cuenta Descendente
    echo 3.Salir del programa
    echo.
    echo Selecciona la Opcion
    set /p opc=
    if %opc%==1 goto asc
    if %opc%==2 goto des
    if %opc%==3 goto sal

    :asc
    cls
    echo Indique el numero a partir del cual empezara la cuenta
    set /p seg=
    echo Indique el numero en la que parara
    set /p segg=
    :start
    cls
    echo %seg%
    ping -n 2 localhost > nul
    set /a seg=%seg% + 1
    if %seg%==%segg% goto terminado
    goto start

    :des
    cls
    set /p num=Numero para empezar:
    set uno=1
    :seg
    cls
    echo %num%
    set /a num=%num%-%uno%
    ping -n 2 localhost > nul
    if %num%==0 goto fin
    goto seg

    :fin
    cls
    echo 0
    msg * Cuenta terminada
    pause>nul
    goto menu


    :terminado
    cls
    echo %segg%
    msg * Cuenta terminada
    pause>nul
    goto menu
    :sal
    cls
    echo Gracias por usar mi programa
    pause>nul
    exit

    saludoss

    203
    Batch / Bash / juegos en batch(actualizado II)
    « en: Noviembre 23, 2011, 08:53:55 pm »
    hola
    Les traigo unos juegos que encontre por internet

    F1 auto



    El auto se muve con las flechas, esta programado para usar el KEYBOARD para mostrar el juego como una  "Prueba de Concepto", pero se adaptaria al uso de CHOICE.COM para que el juego siga automaticamente su curso aun cuando el jugador no presiona ninguna

    Código: [Seleccionar]
    @Echo off
    @title Cars
    @mode con cols=15 lines=13
    ::Batch Game F1 Cars
    ::Coded by SmartGenius

    setlocal enabledelayedexpansion

    If Not Exist "keyboard.exe" (Call :NoKey)

    :Menu
    Cls
    Echo.
    Echo.  F1 Car Game
    Echo.
    Echo.   Presione
    Echo.    Enter
    Echo.
    Pause >nul

    :Vars
    Set "LimX=10"
    Set "LimY=10"
    Set "LimI=3"
    Set "LimD=9"
    Set "Last= "
    Set "CurPos=X3Y3"

    :Init
    Call :Level
    For /l %%a in (0,1,%LimX%) do (
    For /l %%b in (0,1,%LimY%) do (
    Set X%%aY%%b=!Lin_%%a:~%%b,1!))
    Set "Car=X3Y3,X2Y2,X4Y2,X3Y2,X3Y1,X2Y0,X4Y0"
    For %%a in (%Car%) do (Set "%%a=Û")

    :Graphic
    Call :Clear
    For /l %%d in (0,1,%LimX%) do (
    For /l %%e in (0,1,%LimY%) do (
    Set LN_%%d=!LN_%%d!!X%%eY%%d!))
    Echo.  F1 Car Game
    For /l %%f in (%LimY%,-1,0) do (echo. -!LN_%%f!-)
    keyboard
    if "%errorlevel%"=="77" (call :Mov_D)
    if "%errorlevel%"=="75" (call :Mov_I)
    if "%errorlevel%"=="27" (Exit)
    Call :Abajo
    Call :Colision "%CurPos%" "%Car2%" "%Car3%"
    Goto :Graphic

    :Mov_D
    If "%BoundD%"=="True" Goto :Eof
    Set "BoundI=False"
    Set "P=0"
    For %%a in (%Car%) do (
    Set /a P+=1
    Call :MovX+ %%a Car!P!
    )
    Set "Car=%Car1%,%Car2%,%Car3%,%Car4%,%Car5%,%Car6%,%Car7%"
    Set "CurPos=%Car1%"
    Goto :Eof

    :Mov_I
    If "%BoundI%"=="True" Goto :Eof
    Set "BoundD=False"
    Set "P=0"
    For %%a in (%Car%) do (
    Set /a P+=1
    Call :MovX- %%a Car!P!
    )
    Set "Car=%Car1%,%Car2%,%Car3%,%Car4%,%Car5%,%Car6%,%Car7%"
    Set "CurPos=%Car1%"
    Goto :Eof

    :MovX+
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    if !%~1!==Û set %~1=%Last%
    set /a MovX=%%p+1
    call set Last=%%X!MovX!Y%%q%%
    If "%Last%"=="²" (Goto :Lost)
    set X!MovX!Y%%q=Û
    set %2=X!MovX!Y%%q
    if !P!==7 (if "%%p"=="%LimD%" Set BoundD=True)
    )
    Goto :Eof

    :MovX-
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    if !%~1!==Û set %~1=%Last%
    set /a MovX=%%p-1
    call set Last=%%X!MovX!Y%%q%%
    If "%Last%"=="²" (Goto :Lost)
    set X!MovX!Y%%q=Û
    set %2=X!MovX!Y%%q
    if !P!==7 (if "%%p"=="%LimI%" Set BoundI=True)
    )
    Goto :Eof

    :Abajo
    If "%Mov%"=="55" Goto :Win
    Set /a Mov=Mov+1
    For /l %%d in (0,1,%LimY%) do (Set LN_%%d=!Lin_%%d:~%Mov%!)
    For /l %%a in (0,1,%LimX%) do (
    For /l %%b in (0,1,%LimY%) do (
    Set X%%aY%%b=!LN_%%a:~%%b,1!))
    For %%c in (%Car%) do (Set "%%c=Û")
    Goto :Eof

    :Colision
    If "%~1"=="" (Goto :Eof)
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    set /a MovY=%%q+1
    call set NMovY=%%X%%pY!MovY!%%
    if "!NMovY!"=="²" (Goto :Lost)
    )
    Shift
    Goto :Colision

    :Lost
    cls
    Echo.
    Echo.    Te has
    Echo.  Estrellado
    Echo.
    Echo.
    Ping -n 3 0.0.0.0 >nul
    msg * Gracias por Jugar F1 Cars
    Exit

    :Win
    Cls.
    Echo.
    Echo. Has Ganado!
    Echo.
    Echo. Felicidades
    Echo.
    Echo.
    Ping -n 3 0.0.0.0 >nul
    msg * Gracias por Jugar F1 Cars
    Exit

    :Clear
    For /l %%m in (0,1,%LimX%) do (set LN_%%m=)
    Goto :Eof

    :Level
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Set Lin_0=        ² ²             ² ²              ² ²              +       
    Set Lin_1=         ²²²             ²²²              ²²²             +       
    Set Lin_2=        ² ²             ² ²              ² ²              +       
    Set Lin_3=                                                          +       
    Set Lin_4=        ² ²                                  ² ²          +       
    Set Lin_5=         ²²²                     ² ²          ²²²         +       
    Set Lin_6=        ² ²                       ²²²        ² ²          +       
    Set Lin_7=                                 ² ²                      +       
    Set Lin_8=                  ² ²   ² ²  ² ²                          +       
    Set Lin_9=                   ²²²   ²²²  ²²²                         +       
    Set Lin_10=                  ² ²   ² ²  ² ²                          +       
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Goto :Eof

    :NoKey
    Cls
    echo.
    echo. Cargando...
    call :Keyboard
    Goto :Eof

    :Keyboard
    (
    echo n keyboard.dat
    echo e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
    echo e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
    echo e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
    echo rcx
    echo 002E
    echo w0
    echo q
    echo.
    )>keyboard.dat
    type keyboard.dat|debug>NUL 2>&1
    del /f/q/a "keyboard.exe">NUL 2>&1
    ren keyboard.dat "keyboard.exe"
    Goto :Eof
    :

    El ultimo es el Ahorcado



    Código: [Seleccionar]
    @echo off
    title Hangman
    setlocal enabledelayedexpansion
    :menu
    cls
    echo Main Menu
    echo To Play A Game, Press 1
    echo To Add new Words, Press 2
    echo To exit, Press 3
    set /p menu=
    if not defined menu goto menu
    if /i %menu% equ 1 (
    set menu=
    goto Startgame
    )
    if /i %menu% equ 2 (
    set menu=
    goto addwords
    )
    if /i %menu% equ 3 (
    set menu=
    set finishing=1
    goto :EOF
    )
    set menu=
    goto menu

    :addwords
    cls
    Echo Type the word you'd like to add to the dictionary and press enter.
    set /p wordtoadd=""
    if NOT defined wordtoadd (
    goto addwords)


    set justchecking=1
    set wcheck=0

    :wordadd
    call :w%wcheck%
    cls
    if defined finishing (goto :EOF)
    echo.>>Hangman.bat
    echo :w%wcheck%>>Hangman.bat
    echo set word=%wordtoadd%>>Hangman.bat
    echo goto gotword>>Hangman.bat
    set justchecking=
    set wordtoadd=
    set wcheck=
    echo Word Added
    pause>nul
    goto menu

    :goodcheck
    set /a wcheck= %wcheck% + 1
    goto wordadd

    :startgame
    cls
    set hang=12
    set /a randomnumber=%time:~9,2%
    :numberadjustment
    call :w%randomnumber%
    if defined finishing (goto :EOF>nul)
    cls
    set /a randomnumber= ( %randomnumber% * ( ( %randomnumber% * 75 ) /100 ) ) / ( %randomnumber% + 14 ) + ( %randomnumber% * 4 ) / ( %randomnumber% * 3 )
    if /i randomnumber GEQ 10 (
    set randomnumber=%randomnumber:~0,2%
    ) ELSE (
    set randomnumber=%randomnumber:~0,1%
    )
    goto numberadjustment


    :gotword
    if defined justchecking (goto goodcheck)
    set letternumber=0
    :lettersorting
    set x=!letternumber!
    set Letter%letternumber%=!word:~%x%,1!
    set Space%letternumber%=_
    if NOT "!Letter%letternumber%!"=="" (
    set /a letternumber= %letternumber% + 1
    goto lettersorting
    )


    set space=
    set /a spacenumber=0
    :spacecalculator
    set space=%space% #Space%spacenumber%#
    set /a spacenumber= %spacenumber% + 1
    if /i %spacenumber% equ %letternumber% (goto 1guess) else (goto spacecalculator)


    :1guess
    set score=0
    set allguesses=letters:

    :guess
    cls
    goto hang%hang%
    :keepguessing
    echo.
    Echo Guess The Word: %space:#=!%
    if %hang%==1 ( echo Last Guess!) else (
    echo %Hang% Guesses Left
    )
    echo You've guessed these %allguesses%
    echo.
    echo Guess Your Letter
    set guess=
    Set /p guess=
    if not defined guess (goto guess)
    set guess=%guess:~0,1%
    if "%guess%"=="!" (goto guess)

    echo You Guessed %guess%

    if "%allguesses:~8%"=="" goto SkipCheckAlreadyGuess
    echo %allguesses:~8% | find /i "%guess%" >nul
    if /i %errorlevel% equ 0 (
    echo You've already guessed that.
    pause>nul
    goto guess
    )

    :SkipCheckAlreadyGuess

    set allguesses=%allguesses% %guess%


    set poonumber=%letternumber%
    if not defined score (set score=0)
    if not defined oldscore (set oldscore=0)

    :processguess
    set verifyletter=!Letter%poonumber%!
    if /i "%guess%"=="%verifyletter%" (
    set /a score= !score! + 1
    goto letteradjust
    )
    goto resume

    :letteradjust
    set Space%poonumber%=!Letter%poonumber%!
    set !Letter%poonumber%=LETTERDONE

    :resume
    set /a poonumber=%poonumber% - 1
    if /i %poonumber% lss 0 (goto noletter)
    goto processguess



    :noletter
    if /i %score% GTR %oldscore% (goto gotletter)
    Echo Sorry, wrong.
    set /a hang= !hang! - 1
    if !hang!==0 (goto dead)
    pause>nul
    set /a oldscore= %score%
    cls
    goto guess


    :gotletter
    echo Well done!
    if %letternumber%==%score% (goto win)
    pause>nul
    set /a oldscore= %score%
    goto guess

    :dead
    cls
    echo Sorry, you died.
    echo The word was "%word%".
    pause>nul
    goto endofall


    :win
    cls
    echo You Won!
    echo The word was "%word%"!
    echo Well done!
    pause>nul

    :endofall
    set space=
    set cheddar=
    set word=
    set oldscore=
    set score=
    set letternumber=
    set poonumber=
    set spacenumber=
    set anotherword=
    set randomnumber=
    set hang=
    set guess=
    set verifyletter=
    set x=0
    :endset
    if defined Letter%x% (
    set Letter%x%=
    set /a x= %x% + 1
    goto endset
    )
    set x=0
    :endset2
    if defined Space%x% (
    set Letter%x%=
    set /a x= %x% + 1
    goto endset2
    )
    set x=

    :askagain
    cls
    echo Go to the menu (enter 1) or quit (enter 2)?
    set /p cheddar=""
    if not defined cheddar goto askagain
    if %cheddar%==1 (
    set cheddar=
    goto menu)
    if %cheddar%==2 (
    set finishing=1
    goto :EOF)
    goto askagain



    :hang12
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    goto keepguessing


    :hang11
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo.
    echo  ________________________________
    echo [________________________________]
    goto keepguessing


    :hang10
    echo  _
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang9
    echo   ______________________________
    echo [ ]_____________________________]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang8
    echo   _____________________________
    echo [ ]____________________________]
    echo [ ]   /  /
    echo [ ]  /  /
    echo [ ] /  /
    echo [ ]/  /   
    echo [ ]  /   
    echo [ ] /     
    echo [ ]/     
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang7
    echo   ______________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /             (_)
    echo [ ]/  /   
    echo [ ]  /     
    echo [ ] /     
    echo [ ]/     
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]       
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang6
    echo    _____________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /            _(_)_
    echo [ ]/  /            / *_* \
    echo [ ]  /             ] ___ [
    echo [ ] /              \_____/
    echo [ ]/   
    echo [ ]   
    echo [ ]   
    echo [ ]   
    echo [ ]   
    echo [ ]   
    echo [ ]   
    echo [ ]   
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang5
    echo    _____________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /            _(_)_
    echo [ ]/  /            / *_* \
    echo [ ]  /             ] ___ [
    echo [ ] /              \_____/
    echo [ ]/                 [ ]
    echo [ ]                  [ ]
    echo [ ]                  [ ]
    echo [ ]                  [_]
    echo [ ]                 
    echo [ ]             
    echo [ ]             
    echo [ ]             
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang4
    echo    _____________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /            _(_)_
    echo [ ]/  /            / *_* \
    echo [ ]  /             ] ___ [
    echo [ ] /              \_____/
    echo [ ]/                 [ ]_______
    echo [ ]                  [ ]_______]
    echo [ ]                  [ ]
    echo [ ]                  [_]
    echo [ ]                 
    echo [ ]           
    echo [ ]           
    echo [ ]           
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang3
    echo    _____________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /            _(_)_
    echo [ ]/  /            / *_* \
    echo [ ]  /             ] ___ [
    echo [ ] /              \_____/
    echo [ ]/          _______[ ]_______
    echo [ ]          [_______[ ]_______]
    echo [ ]                  [ ]
    echo [ ]                  [_]
    echo [ ]
    echo [ ]
    echo [ ]
    echo [ ]   
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing



    :hang2
    echo    _____________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /            _(_)_
    echo [ ]/  /            / *_* \
    echo [ ]  /             ] ___ [
    echo [ ] /              \_____/
    echo [ ]/          _______[ ]_______
    echo [ ]          [_______[ ]_______]
    echo [ ]                  [ ]
    echo [ ]                  [ ]
    echo [ ]                 / _ \
    echo [ ]                /__ \ \
    echo [ ]                     \ \
    echo [ ]                      \_\
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :hang1
    echo    _____________________________
    echo [ ]__________________(-)________]
    echo [ ]   /  /           (-)
    echo [ ]  /  /            (-)
    echo [ ] /  /            _(_)_
    echo [ ]/  /            / *_* \
    echo [ ]  /             ] ___ [
    echo [ ] /              \_____/
    echo [ ]/          _______[ ]_______
    echo [ ]          [_______[ ]_______]
    echo [ ]                  [ ]
    echo [ ]                  [ ]
    echo [ ]                 / _ \
    echo [ ]                / / \ \
    echo [ ]               / /   \ \
    echo [ ]              /_/     \_\
    echo [ ]                                     
    echo [_]_____________________________
    echo [________________________________]
    goto keepguessing


    :w0
    set word=Bugger
    goto gotword
    :w1
    set word=Willy
    goto gotword
    :w2
    set word=Jelly
    goto gotword
    :w3
    set word=Nipple
    goto gotword
    :w4
    set word=Poo
    goto gotword
    :w5
    set word=Dog
    goto gotword
    :w6
    set word=Rat
    goto gotword
    :w7
    set word=Cat
    goto gotword
    :w8
    set word=Orange
    goto gotword
    :w9
    set word=Purple
    goto gotword
    :w10
    set word=Curry
    goto gotword
    :w11
    set word=Pickle
    goto gotword
    :w12
    set word=Porridge
    goto gotword
    :w13
    set word=Apple
    goto gotword
    :w14
    set word=Loop
    goto gotword
    :w15
    set word=Balloon
    goto gotword
    :w16
    set word=Drive
    goto gotword

    :w17
    set word=Pork
    goto gotword

    :w18
    set word=Fornicate
    goto gotword

    :w19
    set word=Fag
    goto gotword

    :w20
    set word=Monkey
    goto gotword

    :w21
    set word=Crispy
    goto gotword

    :w22
    set word=Beef
    goto gotword

    :w23
    set word=Constitutional
    goto gotword

    :w24
    set word=Educational
    goto gotword

    :w25
    set word=Abnormality
    goto gotword

    :w26
    set word=Retarded
    goto gotword

    :w27
    set word=Fornication
    goto gotword

    :w28
    set word=Rubbing
    goto gotword

    :w29
    set word=Resin
    goto gotword

    :w30
    set word=French
    goto gotword

    :w31
    set word=Pipeline
    goto gotword

    :w32
    set word=Ripple
    goto gotword

    :w33
    set word=Punk
    goto gotword

    :w34
    set word=Turtle
    goto gotword

    :w35
    set word=Antler
    goto gotword

    :w36
    set word=Raindeer
    goto gotword

    :w37
    set word=Document
    goto gotword

    :w38
    set word=Hill
    goto gotword

    :w39
    set word=Steak
    goto gotword

    :w40
    set word=Stake
    goto gotword

    :w41
    set word=Staple
    goto gotword

    :w42
    set word=Hang
    goto gotword

    :w43
    set word=Man
    goto gotword

    :w44
    set word=Alcohol
    goto gotword

    :w45
    set word=Nicotine
    goto gotword

    :w46
    set word=Cigarette
    goto gotword

    :w47
    set word=Triple
    goto gotword

    :w48
    set word=Lime
    goto gotword

    :w49
    set word=Wire
    goto gotword

    :w50
    set word=Plaster
    goto gotword

    :w51
    set word=Christmas
    goto gotword

    :w52
    set word=Holiday
    goto gotword

    :w53
    set word=Dynamite
    goto gotword

    :w54
    set word=Lemming
    goto gotword

    :w55
    set word=Pizza
    goto gotword

    :w56
    set word=Suckle
    goto gotword

    :w57
    set word=Trip
    goto gotword

    :w58
    set word=Course
    goto gotword

    :w59
    set word=Cruise
    goto gotword

    :w60
    set word=Marquee
    goto gotword

    :w61
    set word=Balance
    goto gotword

    :w62
    set word=Scale
    goto gotword

    :w63
    set word=Stuffing
    goto gotword

    :w64
    set word=Storage
    goto gotword

    :w65
    set word=Pot
    goto gotword

    :w66
    set word=Tank
    goto gotword

    :w67
    set word=Tassle
    goto gotword

    :w68
    set word=Silenced
    goto gotword

    :w69
    set word=Sniff
    goto gotword
    :w70
    set word=Green
    goto gotword

    :w71
    set word=Dolphin
    goto gotword
    :w72
    set word=Echo
    goto gotword

    :w73
    set word=Wheat
    goto gotword

    El Juego esta en Ingles,pero se puede modificar

    Bueno si encuentro mas voy agregando

    saludosss

    Edito : sigo agregando

    SudokuBat

    Como su nombre indica, es un juego de Sudoku's.
    Tiene cinco niveles, cada vez mas dificultad.
    Primero empieza con un menu:

    Si elegimos la 2, nos dara ayuda:

    En la 1, ya jugamos al primer sudoku:

    Cuando acabemos de rellenar todos los numeros, le damos a Enter para comprobar si lo hemos hecho bien. Si lo hicimos mal, nos lo pondra en un mensaje, y podremos editarlo; si lo ponemos bien, pasaremos al siguiente nivel:

    Código: [Seleccionar]
    @echo off
    title Sudokubat - by xassiz
    setlocal enabledelayedexpansion
    :menu
    mode con cols=48 lines=10
    cls
    echo.
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo. 1. Play Sudoku
    echo. 2. How to play           
    echo. 3. Exit
    echo.&set "opc="
    set/p "opc=>> "
    if not defined opc (goto:menu)
    if ["%opc:~0,1%"]==["1"] (goto:keyb)
    if ["%opc:~0,1%"]==["2"] (goto:howto)
    if ["%opc:~0,1%"]==["3"] (exit)
    goto:menu
    :keyb
    mode con cols=48 lines=30
    if not exist "keyboard.exe" (
    (echo.n keyboard.xsz
    echo.e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
    echo.e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
    echo.e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
    echo.rcx
    echo.002E
    echo.w0&echo.q
    echo.)>keyboard.xsz
    type keyboard.xsz|debug
    ren keyboard.xsz keyboard.exe
    ) else (goto:vars)
    goto:keyb
    :vars
    set "level=1"
    set "pos=°"
    call:clean_var
    set "position=a[1]"
    set "letter=%position:~0,1%"
    set "num=%position:~2,1%"
    echo.msgbox"Nivel pasado, pulse Aceptar para seguir con el siguiente nivel",99,"Sudokubat - Nivel pasado!">%temp%\sudokubatemp.vbs
    :level
    if "%level%"=="1" (call:Sudoku_1)
    :main
    if "!%position%!"==" " (set "%position%=%pos%")
    :table
    call:header %level%
    echo.      ÉÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍ»
    echo.      º %a[9]% ³ %b[9]% ³ %c[9]% º %d[9]% ³ %e[9]% ³ %f[9]% º %g[9]% ³ %h[9]% ³ %i[9]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[8]% ³ %b[8]% ³ %c[8]% º %d[8]% ³ %e[8]% ³ %f[8]% º %g[8]% ³ %h[8]% ³ %i[8]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[7]% ³ %b[7]% ³ %c[7]% º %d[7]% ³ %e[7]% ³ %f[7]% º %g[7]% ³ %h[7]% ³ %i[7]% º
    echo.      ÈÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍͼ
    echo.      º %a[6]% ³ %b[6]% ³ %c[6]% º %d[6]% ³ %e[6]% ³ %f[6]% º %g[6]% ³ %h[6]% ³ %i[6]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[5]% ³ %b[5]% ³ %c[5]% º %d[5]% ³ %e[5]% ³ %f[5]% º %g[5]% ³ %h[5]% ³ %i[5]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[4]% ³ %b[4]% ³ %c[4]% º %d[4]% ³ %e[4]% ³ %f[4]% º %g[4]% ³ %h[4]% ³ %i[4]% º
    echo.      ÉÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍ»
    echo.      º %a[3]% ³ %b[3]% ³ %c[3]% º %d[3]% ³ %e[3]% ³ %f[3]% º %g[3]% ³ %h[3]% ³ %i[3]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[2]% ³ %b[2]% ³ %c[2]% º %d[2]% ³ %e[2]% ³ %f[2]% º %g[2]% ³ %h[2]% ³ %i[2]% º
    echo.      þÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄĺÄÄÄþÄÄÄþÄÄÄþ
    echo.      º %a[1]% ³ %b[1]% ³ %c[1]% º %d[1]% ³ %e[1]% ³ %f[1]% º %g[1]% ³ %h[1]% ³ %i[1]% º
    echo.      ÈÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍÍþÍÍͼ
    keyboard
    if %level%==6 (goto:End) else (call:Sudoku_%level%)
    if %errorlevel% == 49 (set "%position%=1")
    if %errorlevel% == 50 (set "%position%=2")
    if %errorlevel% == 51 (set "%position%=3")
    if %errorlevel% == 52 (set "%position%=4")
    if %errorlevel% == 53 (set "%position%=5")
    if %errorlevel% == 54 (set "%position%=6")
    if %errorlevel% == 55 (set "%position%=7")
    if %errorlevel% == 56 (set "%position%=8")
    if %errorlevel% == 57 (set "%position%=9")
    if %errorlevel% == 8 (set "%position%=%pos%")
    if %errorlevel% == 72 (goto:MoveUp)
    if %errorlevel% == 80 (goto:MoveDown)
    if %errorlevel% == 77 (goto:MoveRight)
    if %errorlevel% == 75 (goto:MoveLeft)
    if %errorlevel% == 13 (goto:Result)
    goto:main

    :MoveUp
    set "old_position=%position%"
    set/a num+=1
    set "position=%letter%[%num%]"
    goto:main

    :MoveDown
    set "old_position=%position%"
    set/a num-=1
    set "position=%letter%[%num%]"
    goto:main

    :MoveRight
    set "old_position=%position%"
    if "%letter%"=="h" (set "letter=i")
    if "%letter%"=="g" (set "letter=h")
    if "%letter%"=="f" (set "letter=g")
    if "%letter%"=="e" (set "letter=f")
    if "%letter%"=="d" (set "letter=e")
    if "%letter%"=="c" (set "letter=d")
    if "%letter%"=="b" (set "letter=c")
    if "%letter%"=="a" (set "letter=b")
    set "position=%letter%[%num%]"
    goto:main

    :MoveLeft
    set "old_position=%position%"
    if "%letter%"=="b" (set "letter=a")
    if "%letter%"=="c" (set "letter=b")
    if "%letter%"=="d" (set "letter=c")
    if "%letter%"=="e" (set "letter=d")
    if "%letter%"=="f" (set "letter=e")
    if "%letter%"=="g" (set "letter=f")
    if "%letter%"=="h" (set "letter=g")
    if "%letter%"=="i" (set "letter=h")
    set "position=%letter%[%num%]"
    goto:main

    :clean_var
    for /L %%a in (1,1,9) do (
    set "a[%%a]= "
    set "b[%%a]= "
    set "c[%%a]= "
    set "d[%%a]= "
    set "e[%%a]= "
    set "f[%%a]= "
    set "g[%%a]= "
    set "h[%%a]= "
    set "i[%%a]= "
    )
    set "a[1]=%pos%"
    call:Sudoku_%level%
    goto:eof

    :header
    cls
    echo.
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo.                     Level %1
    echo.
    goto:eof

    :Sudoku_1
    set "a[2]=1"
    set "a[7]=6"
    set "b[2]=6"
    set "b[5]=2"
    set "b[6]=9"
    set "b[7]=4"
    set "b[9]=7"
    set "c[2]=5"
    set "c[5]=6"
    set "c[7]=9"
    set "d[1]=9"
    set "d[4]=4"
    set "d[9]=5"
    set "e[1]=1"
    set "e[4]=2"
    set "e[6]=3"
    set "e[9]=6"
    set "f[1]=8"
    set "f[6]=7"
    set "f[9]=2"
    set "g[3]=1"
    set "g[5]=9"
    set "g[8]=8"
    set "h[1]=4"
    set "h[3]=2"
    set "h[4]=1"
    set "h[5]=7"
    set "h[8]=6"
    set "i[3]=3"
    set "i[8]=7"
    goto:eof

    :Sudoku_2
    set "a[7]=8"
    set "a[8]=9"
    set "b[1]=5"
    set "b[2]=4"
    set "b[3]=7"
    set "c[4]=2"
    set "c[5]=6"
    set "c[6]=7"
    set "c[9]=4"
    set "d[4]=1"
    set "d[6]=8"
    set "d[7]=7"
    set "e[1]=3"
    set "e[2]=8"
    set "e[3]=6"
    set "e[7]=2"
    set "e[8]=1"
    set "e[9]=5"
    set "f[3]=1"
    set "f[4]=3"
    set "f[6]=6"
    set "g[1]=7"
    set "g[4]=5"
    set "g[5]=3"
    set "g[6]=1"
    set "h[7]=6"
    set "h[8]=4"
    set "h[9]=1"
    set "i[2]=9"
    set "i[3]=2"
    goto:eof

    :Sudoku_3
    set "a[1]=8"
    set "a[4]=1"
    set "a[5]=5"
    set "a[6]=2"
    set "b[1]=7"
    set "b[7]=5"
    set "c[3]=6"
    set "c[7]=9"
    set "d[1]=1"
    set "d[2]=2"
    set "d[8]=3"
    set "e[2]=3"
    set "e[4]=6"
    set "e[6]=7"
    set "e[8]=9"
    set "f[2]=6"
    set "f[8]=4"
    set "f[9]=5"
    set "g[3]=9"
    set "g[7]=8"
    set "h[3]=1"
    set "h[9]=6"
    set "i[4]=2"
    set "i[5]=4"
    set "i[6]=3"
    set "i[9]=9"
    goto:eof

    :Sudoku_4
    set "a[3]=3"
    set "a[6]=2"
    set "b[3]=4"
    set "b[8]=9"
    set "c[1]=5"
    set "c[3]=7"
    set "c[5]=6"
    set "c[6]=9"
    set "c[9]=3"
    set "d[2]=6"
    set "e[1]=2"
    set "e[4]=7"
    set "e[6]=3"
    set "e[9]=1"
    set "f[8]=8"
    set "g[1]=9"
    set "g[4]=5"
    set "g[5]=8"
    set "g[7]=2"
    set "g[9]=7"
    set "h[2]=1"
    set "h[7]=3"
    set "i[4]=4"
    set "i[7]=5"
    goto:eof

    :Sudoku_5
    set "a[4]=8"
    set "a[5]=7"
    set "a[6]=4"
    set "a[9]=3"
    set "b[8]=9"
    set "c[1]=2"
    set "c[5]=3"
    set "c[8]=5"
    set "d[1]=3"
    set "d[9]=1"
    set "e[4]=9"
    set "e[6]=6"
    set "f[1]=5"
    set "f[9]=4"
    set "g[2]=6"
    set "g[5]=1"
    set "g[9]=8"
    set "h[2]=7"
    set "i[1]=1"
    set "i[4]=6"
    set "i[5]=2"
    set "i[6]=3"
    goto:eof

    :End
    cls
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo.                    Felicidades,
    echo.
    echo.           has ganado Sudokubat, eres un gran
    echo.
    echo.                jugador de Sudoku =^)
    pause>nul
    cls
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo.           Gracias por usar Sudokubat
    echo.
    echo.        Pulse cualquier tecla para salir
    pause>nul
    exit

    :Result
    ::columns
    cls
    for %%_ in (a,b,c,d,e,f,g,h,i) do (
    if "!%%_[1]!"=="!%%_[2]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[3]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[4]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[1]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[3]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[4]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[2]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[4]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[3]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[5]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[4]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[6]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[5]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[6]!"=="!%%_[7]!" (set tBoolean=true)
    if "!%%_[6]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[6]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[7]!"=="!%%_[8]!" (set tBoolean=true)
    if "!%%_[7]!"=="!%%_[9]!" (set tBoolean=true)
    if "!%%_[8]!"=="!%%_[9]!" (set tBoolean=true)
    )
    if "%tBoolean%"=="true" (
    call:header %level%
    echo.
    echo.                       Mal
    echo.
    pause>nul
    goto:main
    ) else (set "Columns=Good")
    (set tBoolean=)
    ::rows
    for /L %%- in (1 1 9) do (
    if "!a[%%-]!"=="!b[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!c[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!d[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!a[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!c[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!d[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!b[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!d[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!c[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!e[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!d[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!f[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!e[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!f[%%-]!"=="!g[%%-]!" (set tBoolean=true)
    if "!f[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!f[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!g[%%-]!"=="!h[%%-]!" (set tBoolean=true)
    if "!g[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    if "!h[%%-]!"=="!i[%%-]!" (set tBoolean=true)
    )
    if "%tBoolean%"=="true" (
    call:header %level%
    echo.
    echo.                       Mal
    echo.
    pause>nul
    goto:main
    ) else (set "Rows=Good")
    (set tBoolean=)

    ::squares

    if "%a[1]%"=="%b[2]%" (set tBoolean=true)
    if "%a[1]%"=="%b[3]%" (set tBoolean=true)
    if "%a[1]%"=="%c[2]%" (set tBoolean=true)
    if "%a[1]%"=="%c[3]%" (set tBoolean=true)
    if "%b[1]%"=="%a[2]%" (set tBoolean=true)
    if "%b[1]%"=="%a[3]%" (set tBoolean=true)
    if "%b[1]%"=="%c[2]%" (set tBoolean=true)
    if "%b[1]%"=="%c[3]%" (set tBoolean=true)
    if "%c[1]%"=="%a[2]%" (set tBoolean=true)
    if "%c[1]%"=="%a[3]%" (set tBoolean=true)
    if "%c[1]%"=="%b[2]%" (set tBoolean=true)
    if "%c[1]%"=="%b[3]%" (set tBoolean=true)
    if "%a[2]%"=="%b[3]%" (set tBoolean=true)
    if "%a[2]%"=="%c[3]%" (set tBoolean=true)
    if "%b[2]%"=="%a[3]%" (set tBoolean=true)
    if "%b[2]%"=="%c[3]%" (set tBoolean=true)
    if "%c[2]%"=="%a[3]%" (set tBoolean=true)
    if "%c[2]%"=="%b[3]%" (set tBoolean=true)

    if "%d[1]%"=="%e[2]%" (set tBoolean=true)
    if "%d[1]%"=="%e[3]%" (set tBoolean=true)
    if "%d[1]%"=="%f[2]%" (set tBoolean=true)
    if "%d[1]%"=="%f[3]%" (set tBoolean=true)
    if "%e[1]%"=="%d[2]%" (set tBoolean=true)
    if "%e[1]%"=="%d[3]%" (set tBoolean=true)
    if "%e[1]%"=="%f[2]%" (set tBoolean=true)
    if "%e[1]%"=="%f[3]%" (set tBoolean=true)
    if "%f[1]%"=="%d[2]%" (set tBoolean=true)
    if "%f[1]%"=="%d[3]%" (set tBoolean=true)
    if "%f[1]%"=="%e[2]%" (set tBoolean=true)
    if "%f[1]%"=="%e[3]%" (set tBoolean=true)
    if "%d[2]%"=="%e[3]%" (set tBoolean=true)
    if "%d[2]%"=="%f[3]%" (set tBoolean=true)
    if "%e[2]%"=="%d[3]%" (set tBoolean=true)
    if "%e[2]%"=="%f[3]%" (set tBoolean=true)
    if "%f[2]%"=="%d[3]%" (set tBoolean=true)
    if "%f[2]%"=="%e[3]%" (set tBoolean=true)

    if "%g[1]%"=="%h[2]%" (set tBoolean=true)
    if "%g[1]%"=="%h[3]%" (set tBoolean=true)
    if "%g[1]%"=="%i[2]%" (set tBoolean=true)
    if "%g[1]%"=="%i[3]%" (set tBoolean=true)
    if "%h[1]%"=="%g[2]%" (set tBoolean=true)
    if "%h[1]%"=="%g[3]%" (set tBoolean=true)
    if "%h[1]%"=="%i[2]%" (set tBoolean=true)
    if "%h[1]%"=="%i[3]%" (set tBoolean=true)
    if "%i[1]%"=="%g[2]%" (set tBoolean=true)
    if "%i[1]%"=="%g[3]%" (set tBoolean=true)
    if "%i[1]%"=="%h[2]%" (set tBoolean=true)
    if "%i[1]%"=="%h[3]%" (set tBoolean=true)
    if "%g[2]%"=="%h[3]%" (set tBoolean=true)
    if "%g[2]%"=="%i[3]%" (set tBoolean=true)
    if "%h[2]%"=="%g[3]%" (set tBoolean=true)
    if "%h[2]%"=="%i[3]%" (set tBoolean=true)
    if "%i[2]%"=="%g[3]%" (set tBoolean=true)
    if "%i[2]%"=="%h[3]%" (set tBoolean=true)

    if "%a[4]%"=="%b[5]%" (set tBoolean=true)
    if "%a[4]%"=="%b[6]%" (set tBoolean=true)
    if "%a[4]%"=="%c[5]%" (set tBoolean=true)
    if "%a[4]%"=="%c[6]%" (set tBoolean=true)
    if "%b[4]%"=="%a[5]%" (set tBoolean=true)
    if "%b[4]%"=="%a[6]%" (set tBoolean=true)
    if "%b[4]%"=="%c[5]%" (set tBoolean=true)
    if "%b[4]%"=="%c[6]%" (set tBoolean=true)
    if "%c[4]%"=="%a[5]%" (set tBoolean=true)
    if "%c[4]%"=="%a[6]%" (set tBoolean=true)
    if "%c[4]%"=="%b[5]%" (set tBoolean=true)
    if "%c[4]%"=="%b[6]%" (set tBoolean=true)
    if "%a[5]%"=="%b[6]%" (set tBoolean=true)
    if "%a[5]%"=="%c[6]%" (set tBoolean=true)
    if "%b[5]%"=="%a[6]%" (set tBoolean=true)
    if "%b[5]%"=="%c[6]%" (set tBoolean=true)
    if "%c[5]%"=="%a[6]%" (set tBoolean=true)
    if "%c[5]%"=="%b[6]%" (set tBoolean=true)

    if "%d[4]%"=="%e[5]%" (set tBoolean=true)
    if "%d[4]%"=="%e[6]%" (set tBoolean=true)
    if "%d[4]%"=="%f[5]%" (set tBoolean=true)
    if "%d[4]%"=="%f[6]%" (set tBoolean=true)
    if "%e[4]%"=="%d[5]%" (set tBoolean=true)
    if "%e[4]%"=="%d[6]%" (set tBoolean=true)
    if "%e[4]%"=="%f[5]%" (set tBoolean=true)
    if "%e[4]%"=="%f[6]%" (set tBoolean=true)
    if "%f[4]%"=="%d[5]%" (set tBoolean=true)
    if "%f[4]%"=="%d[6]%" (set tBoolean=true)
    if "%f[4]%"=="%e[5]%" (set tBoolean=true)
    if "%f[4]%"=="%e[6]%" (set tBoolean=true)
    if "%d[5]%"=="%e[6]%" (set tBoolean=true)
    if "%d[5]%"=="%f[6]%" (set tBoolean=true)
    if "%e[5]%"=="%d[6]%" (set tBoolean=true)
    if "%e[5]%"=="%f[6]%" (set tBoolean=true)
    if "%f[5]%"=="%d[6]%" (set tBoolean=true)
    if "%f[5]%"=="%e[6]%" (set tBoolean=true)

    if "%g[4]%"=="%h[5]%" (set tBoolean=true)
    if "%g[4]%"=="%h[6]%" (set tBoolean=true)
    if "%g[4]%"=="%i[5]%" (set tBoolean=true)
    if "%g[4]%"=="%i[6]%" (set tBoolean=true)
    if "%h[4]%"=="%g[5]%" (set tBoolean=true)
    if "%h[4]%"=="%g[6]%" (set tBoolean=true)
    if "%h[4]%"=="%i[5]%" (set tBoolean=true)
    if "%h[4]%"=="%i[6]%" (set tBoolean=true)
    if "%i[4]%"=="%g[5]%" (set tBoolean=true)
    if "%i[4]%"=="%g[6]%" (set tBoolean=true)
    if "%i[4]%"=="%h[5]%" (set tBoolean=true)
    if "%i[4]%"=="%h[6]%" (set tBoolean=true)
    if "%g[5]%"=="%h[6]%" (set tBoolean=true)
    if "%g[5]%"=="%i[6]%" (set tBoolean=true)
    if "%h[5]%"=="%g[6]%" (set tBoolean=true)
    if "%h[5]%"=="%i[6]%" (set tBoolean=true)
    if "%i[5]%"=="%g[6]%" (set tBoolean=true)
    if "%i[5]%"=="%h[6]%" (set tBoolean=true)

    if "%a[7]%"=="%b[8]%" (set tBoolean=true)
    if "%a[7]%"=="%b[9]%" (set tBoolean=true)
    if "%a[7]%"=="%c[8]%" (set tBoolean=true)
    if "%a[7]%"=="%c[9]%" (set tBoolean=true)
    if "%b[7]%"=="%a[8]%" (set tBoolean=true)
    if "%b[7]%"=="%a[9]%" (set tBoolean=true)
    if "%b[7]%"=="%c[8]%" (set tBoolean=true)
    if "%b[7]%"=="%c[9]%" (set tBoolean=true)
    if "%c[7]%"=="%a[8]%" (set tBoolean=true)
    if "%c[7]%"=="%a[9]%" (set tBoolean=true)
    if "%c[7]%"=="%b[8]%" (set tBoolean=true)
    if "%c[7]%"=="%b[9]%" (set tBoolean=true)
    if "%a[8]%"=="%b[9]%" (set tBoolean=true)
    if "%a[8]%"=="%c[9]%" (set tBoolean=true)
    if "%b[8]%"=="%a[9]%" (set tBoolean=true)
    if "%b[8]%"=="%c[9]%" (set tBoolean=true)
    if "%c[8]%"=="%a[9]%" (set tBoolean=true)
    if "%c[8]%"=="%b[9]%" (set tBoolean=true)

    if "%d[7]%"=="%e[8]%" (set tBoolean=true)
    if "%d[7]%"=="%e[9]%" (set tBoolean=true)
    if "%d[7]%"=="%f[8]%" (set tBoolean=true)
    if "%d[7]%"=="%f[9]%" (set tBoolean=true)
    if "%e[7]%"=="%d[8]%" (set tBoolean=true)
    if "%e[7]%"=="%d[9]%" (set tBoolean=true)
    if "%e[7]%"=="%f[8]%" (set tBoolean=true)
    if "%e[7]%"=="%f[9]%" (set tBoolean=true)
    if "%f[7]%"=="%d[8]%" (set tBoolean=true)
    if "%f[7]%"=="%d[9]%" (set tBoolean=true)
    if "%f[7]%"=="%e[8]%" (set tBoolean=true)
    if "%f[7]%"=="%e[9]%" (set tBoolean=true)
    if "%d[8]%"=="%e[9]%" (set tBoolean=true)
    if "%d[8]%"=="%f[9]%" (set tBoolean=true)
    if "%e[8]%"=="%d[9]%" (set tBoolean=true)
    if "%e[8]%"=="%f[9]%" (set tBoolean=true)
    if "%f[8]%"=="%d[9]%" (set tBoolean=true)
    if "%f[8]%"=="%e[9]%" (set tBoolean=true)

    if "%g[7]%"=="%h[8]%" (set tBoolean=true)
    if "%g[7]%"=="%h[9]%" (set tBoolean=true)
    if "%g[7]%"=="%i[8]%" (set tBoolean=true)
    if "%g[7]%"=="%i[9]%" (set tBoolean=true)
    if "%h[7]%"=="%g[8]%" (set tBoolean=true)
    if "%h[7]%"=="%g[9]%" (set tBoolean=true)
    if "%h[7]%"=="%i[8]%" (set tBoolean=true)
    if "%h[7]%"=="%i[9]%" (set tBoolean=true)
    if "%i[7]%"=="%g[8]%" (set tBoolean=true)
    if "%i[7]%"=="%g[9]%" (set tBoolean=true)
    if "%i[7]%"=="%h[8]%" (set tBoolean=true)
    if "%i[7]%"=="%h[9]%" (set tBoolean=true)
    if "%g[8]%"=="%h[9]%" (set tBoolean=true)
    if "%g[8]%"=="%i[9]%" (set tBoolean=true)
    if "%h[8]%"=="%g[9]%" (set tBoolean=true)
    if "%h[8]%"=="%i[9]%" (set tBoolean=true)
    if "%i[8]%"=="%g[9]%" (set tBoolean=true)
    if "%i[8]%"=="%h[9]%" (set tBoolean=true)

    if "%tBoolean%"=="true" (
    call:header %level%
    echo.
    echo.                      Mal
    echo.
    pause>nul
    goto:main
    ) else (set "Squares=Good")
    (set tBoolean=)
    if "%Columns%"=="Good" (
    if "%Rows%"=="Good" (
    if "%Squares%"=="Good" (
    start %temp%\sudokubatemp.vbs
    set/a "level+=1"
    if %level%==6 (goto:End)
    call:clean_var
    goto:main
    ))) else (goto:main)


    :howto
    cls
    mode con cols=52 lines=16
    echo.&echo.
    echo.             ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    echo.             ³Sudokubat - by xassiz³
    echo.             ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    echo.
    echo. Muevete por el tablero con las teclas de direccion
    echo. y ve poniendo numeros con el teclado.
    echo.
    echo.  Una vez acabes y quieras comprobar si lo hiciste
    echo.   correctamente, solo tienes que darle a Enter.
    echo.
    echo.      Espero que disfruteis con Sudokubat
    echo.
    echo.                     Saludos
    echo.                     xassiz_
    echo.
    pause>nul&goto:menu

    Battle Ships V1



    Creo que el juego no necesita explicacion porque la gran mayoria conocera la mecanica del mismo, ir descubriendo la posicion del enemigo antes de que descubarn la tuya.

    Los movimientos se realizan con las flechas de direccion y se confirma una coordenada con la tecla Enter.
    A jugar señores XD

    Código: [Seleccionar]
    @echo off
    @title BattleShip
    @::Another Batch Game
    @::Coded by ::SmartGenius::
    setlocal enabledelayedexpansion

    if not exist "keyboard.exe" (Goto :NoKey)

    Call :Logo

    :Menu
    @cls
    @::BattleShip v 1
    @mode con cols=21 lines=20
    set colors=a123b567c9
    echo.
    echo. BattleShips v 1
    echo. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
    echo. ÚÄÄ¿ ÚÄÄÄÄÄÄ¿
    echo. ³1.³ ³Jugar ³
    echo. ÀÄÄÙ ÀÄÄÄÄÄÄÙ
    echo. ÚÄÄ¿ ÚÄÄÄÄÄÄ¿
    echo. ³2.³ ³Salir ³
    echo. ÀÄÄÙ ÀÄÄÄÄÄÄÙ
    keyboard
    if "%errorlevel%"=="49" (Goto :InGame)
    if "%errorlevel%"=="50" (msg * BattleShip v 1 by SmartGenius&exit)
    if "%errorlevel%"=="32" (color 0!colors:~%random:~-1%,1!)
    Goto :Menu

    :InGame
    Call :Clear
    Call :Load1
    cls
    echo.
    echo. Barcos en Posicion
    echo. Cargando Juego...
    ping -n 3 0.0.0.0 >nul
    Call :Load2
    Goto :Menu

    ::Tablero posicionador
    :Load1
    set LimX=6
    set LimY=6
    set IniX=0
    set IniY=0
    set MovX=0
    set MovY=0
    set Ships=5
    set Water=²
    set Blank=X

    :init1
    for /l %%a in (0,1,%LimX%) do (
    for /l %%b in (0,1,%LimY%) do (
    set X%%aY%%b=°
    ))
    set X0Y0=
    set Last=°
    set Curpos=X0Y0
    Goto :First

    :Gp1
    Call :Clear
    :First
    for /l %%d in (0,1,%LimY%) do (
    for /l %%e in (0,1,%LimX%) do (
    set Lin_%%d=!Lin_%%d!³!X%%eY%%d!))
    echo.
    echo. Posiciona tus
    echo. Barcos...
    echo.
    echo.   ÚÄÂÄÂÄÂÄÂÄÂÄÂÄ¿
    for /l %%f in (0,1,%LimY%) do (
    echo.   !Lin_%%f!³
    echo.   ÃÄÅÄÅÄÅÄÅÄÅÄÅÄ´)
    echo.   ÀÄÁÄÁÄÁÄÁÄÁÄÁÄÙ
    if "%Ships%"=="0" Goto :Eof
    keyboard
    if "%errorlevel%"=="77" (call :MovAX+ "%CurPos%")
    if "%errorlevel%"=="75" (call :MovAX- "%CurPos%")
    if "%errorlevel%"=="80" (call :MovAY+ "%CurPos%")
    if "%errorlevel%"=="72" (call :MovAY- "%CurPos%")
    if "%errorlevel%"=="13" (call :PosShip "%CurPos%")
    if "%errorlevel%"=="88" (Goto :Menu)
    if "%errorlevel%"=="120" (Goto :Menu)
    Goto :Gp1
    ::Fin Tablero Posicionador

    ::Tablero de Batalla
    :Load2
    @mode con cols=42 lines=20
    for /l %%a in (0,1,%LimX%) do (
    for /l %%b in (0,1,%LimY%) do (
    set MX%%aY%%b=
    ))
    Call :GenPC

    :init2
    for /l %%a in (0,1,%LimX%) do (
    for /l %%b in (0,1,%LimY%) do (
    set PX%%aY%%b=!X%%aY%%b!
    set X%%aY%%b=°))
    set Player=5
    set X0Y0=
    set Last=°
    set Curpos=X0Y0
    Goto :Gp2

    :Gp2
    title BattleShip v 1 by SmartGenius
    Call :Clear
    :Second
    for /l %%d in (0,1,%LimY%) do (
    for /l %%e in (0,1,%LimX%) do (
    set Lin_%%d=!Lin_%%d!³!PX%%eY%%d!
    set Lin2_%%d=!Lin2_%%d!³!X%%eY%%d!))
    echo.
    echo.    Jugador: %Player%            PC: %PC%
    echo.     A B C D E F G       A B C D E F G
    echo.    ÚÄÂÄÂÄÂÄÂÄÂÄÂÄ¿ :   ÚÄÂÄÂÄÂÄÂÄÂÄÂÄ¿
    for /l %%f in (0,1,%LimY%) do (
    echo. %%f  !Lin_%%f!³ : %%f !Lin2_%%f!³
    echo.    ÃÄÅÄÅÄÅÄÅÄÅÄÅÄ´ :   ÃÄÅÄÅÄÅÄÅÄÅÄÅÄ´)
    echo.    ÀÄÁÄÁÄÁÄÁÄÁÄÁÄÙ :   ÀÄÁÄÁÄÁÄÁÄÁÄÁÄÙ
    if "%PC%"=="0" Goto :Win
    if "%Player%"=="0" Goto :Lose
    keyboard
    if "%errorlevel%"=="77" (call :MovAX+ "%CurPos%")
    if "%errorlevel%"=="75" (call :MovAX- "%CurPos%")
    if "%errorlevel%"=="80" (call :MovAY+ "%CurPos%")
    if "%errorlevel%"=="72" (call :MovAY- "%CurPos%")
    if "%errorlevel%"=="13" (
    call :Player "%CurPos%"
    Call :MovPC
    )
    if "%errorlevel%"=="88" (Goto :Menu)
    if "%errorlevel%"=="120" (Goto :Menu)
    Goto :Gp2
    ::Fin Tablero de Batalla

    :MovAX+
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    if "%%p"=="%LimX%" Goto :Eof
    if !%~1!== set %~1=%Last%
    set /a MovX=%%p+1
    call set Last=%%X!MovX!Y%%q%%
    set X!MovX!Y%%q=
    set CurPos=X!MovX!Y%%q
    )
    Goto :Eof

    :MovAX-
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    if "%%p"=="%IniX%" Goto :Eof
    if !%~1!== set %~1=%Last%
    set /a MovX=%%p-1
    call set Last=%%X!MovX!Y%%q%%
    set X!MovX!Y%%q=
    set CurPos=X!MovX!Y%%q
    )
    Goto :Eof

    :MovAY+
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    if "%%q"=="%LimY%" Goto :Eof
    if !%~1!== set %~1=%Last%
    set /a MovY=%%q+1
    call set Last=%%X%%pY!MovY!%%
    set X%%pY!MovY!=
    set CurPos=X%%pY!MovY!
    )
    Goto :Eof

    :MovAY-
    for /f "tokens=1,2 delims=X,Y" %%p in ("%~1") do (
    if "%%q"=="%IniY%" Goto :Eof
    if !%~1!== set %~1=%Last%
    set /a MovY=%%q-1
    call set Last=%%X%%pY!MovY!%%
    set X%%pY!MovY!=
    set CurPos=X%%pY!MovY!
    )
    Goto :Eof

    :GenPC
    set PC=5
    set R1=%random:~-1%
    set R2=%random:~-1%
    if not "%R1%" GTR "%LimX%" (
    if not "%R2%" GTR "%LimY%" (
    set MX%R1%Y%R2%=Û
    set /a var+=1
    ))
    if "%var%"=="%PC%" Goto :Eof
    Goto :GenPC

    :MovPC
    set R1=%random:~-1%
    set R2=%random:~-1%
    if not "%R1%" GTR "%LimX%" (
    if not "%R2%" GTR "%LimY%" (
    call set Tar=!PX%R1%Y%R2%!
    if "!Tar!"=="X" (
    Goto :MovPC
    )
    if "!Tar!"=="" (
    Goto :MovPC
    )
    if "!Tar!"=="Û" (
    set PX%R1%Y%R2%=
    set /a Player-=1
    Goto :Eof
    ) else (
    set PX%R1%Y%R2%=X
    Goto :Eof
    )
    ))
    Goto :MovPC

    :PosShip
    if not "%Last%"=="Û" (
    set %~1=Û
    set /a Ships-=1)
    Goto :Eof

    :Player
    if defined M%~1 (
    set %~1=Û
    set /a PC-=1
    Goto :Eof
    )
    set %~1=%Blank%
    Goto :Eof

    :Lose
    msg * Perdiste !
    ping -n 3 0.0.0.0 >nul
    Goto :Menu

    :Win
    msg * Ganaste !
    ping -n 3 0.0.0.0 >nul
    Goto :Menu

    :Clear
    for /l %%m in (0,1,%LimY%) do (
    set Lin_%%m=
    set Lin2_%%m=
    )
    Goto :Eof

    :Logo
    @mode con cols=40 lines=15
    @title BattleShips v 1 by SmartGenius
    echo.
    echo.                 _==^|
    echo.   Battle   _==^|   )__)  ^|  Ships
    echo.              )_)  )___) ))
    echo.             )___) )____))_)
    echo.        _    )____)_____))__)\
    echo.         \---__^|____/^|___^|___-\\---
    echo. ~~~~~~~~~\   oo oo oo oo     /~~~~~~~~
    echo.   ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
    echo.     ~~~~      ~~~~     ~~~~ ~~ ~~
    echo.          ~~~~~        ~~~~~
    echo.
    echo.         SmartGenius, Corp. 2009
    pause >nul
    ping -n 3 0.0.0.0 >nul
    Goto :Eof

    :NoKey
    cls
    echo.
    echo  Uno de los archivos necesarios para el
    echo  funcionamiento de este Script no se
    echo  encuentra.
    echo.
    echo  A Continuacion sera creado...
    call :keyboard
    ping -n 2 0.0.0.0 >nul
    Goto :Menu

    :keyboard
    (
    echo n keyboard.dat
    echo e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
    echo e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
    echo e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
    echo rcx
    echo 002E
    echo w0
    echo q
    echo.
    )>keyboard.dat
    type keyboard.dat|debug>NUL 2>&1
    del /f/q/a "keyboard.exe">NUL 2>&1
    ren keyboard.dat "keyboard.exe"
    Goto :Eof

    edito 2
    Tengo otro juego para ustedes
    se juega con las flechas es sencillo pero divertido XD

    Código: [Seleccionar]
    @echo off
    @title Maze Madness
    @mode con cols=22 lines=20
    ::Batch Game Maze Madness
    ::by Splendit
    ::Based On SmartGenius Batch Game Logics

    setlocal enabledelayedexpansion
    If Not Exist Keyboard.exe (Call :Keyboard)

    :Vars
    Set LimX=16
    Set LimY=16
    Set IniX=0
    Set IniY=0
    Set MovX=0
    Set MovY=0
    Set "Bound=Û"
    Set "Space= "
    Set "Player=O"
    Set "Limit=°"
    Set "Exit=X"

    :Init
    For /l %%a in (%IniX%,1,%LimX%) do (
    For /l %%b in (%IniY%,1,%LimY%) do (
    Set X%%aY%%b=%Limit%))
    Call :Nivel_1
    Set "X4Y6=%Player%"
    Set Curpos=X4Y6
    Goto :Graphic

    :Graphic
    Call :Clear
    For /l %%d in (%IniX%,1,%LimY%) do (
    For /l %%e in (%IniX%,1,%LimX%) do (
    Set Lin_%%d=!Lin_%%d!!X%%eY%%d!))
    Echo.
    Echo.
    For /l %%f in (0,1,%LimY%) do (echo.  !Lin_%%f!)
    Echo.
    If Defined MovL (
    Ping -n 1 localhost >nul
    Call :%MovL% "%CurPos%"
    Goto :Graphic
    ) else (
    Keyboard
    )
    If "%errorlevel%"=="77" (call :MovX "+" "%CurPos%")
    If "%errorlevel%"=="75" (call :MovX "-" "%CurPos%")
    If "%errorlevel%"=="80" (call :MovY "+" "%CurPos%")
    If "%errorlevel%"=="72" (call :MovY "-" "%CurPos%")
    If "%errorlevel%"=="88" (pause&exit)
    If "%errorlevel%"=="120" (pause&exit)
    Goto :Graphic

    :MovY
    For /f "tokens=1,2 delims=X,Y" %%p in ("%~2") do (
    if "%%q"=="%LimY%" Goto :Eof
    Set /a MovY=%%q%~11
    Call Set NMovY=%%X%%pY!MovY!%%
    If "!NMovY!"=="%Bound%" (Set "MovL="&Goto :Eof)
    If "!NMovY!"=="%Exit%" (Goto :Win)
    If "!NMovY!"=="%Limit%" (Goto :Lose)
    Set X%%pY!MovY!=%Player%
    Set CurPos=X%%pY!MovY!
    Set MovL=MovY "%~1"
    Set "%~2=%Space%")
    Goto :Eof

    :MovX
    For /f "tokens=1,2 delims=X,Y" %%p in ("%~2") do (
    If "%%p"=="%LimX%" Goto :Eof
    Set /a MovX=%%p%~11
    Call Set NMovX=%%X!MovX!Y%%q%%
    If "!NMovX!"=="%Bound%" (Set "MovL="&Goto :Eof)
    If "!NMovX!"=="%Exit%" (Goto :Win)
    If "!NMovX!"=="%Limit%" (Goto :Lose)
    Set "X!MovX!Y%%q=%Player%"
    Set "CurPos=X!MovX!Y%%q"
    Set MovL=MovX "%~1"
    Set "%~2=%Space%")
    Goto :Eof

    :Clear
    for /l %%m in (0,1,%LimY%) do (set Lin_%%m=)
    Goto :Eof

    :Win
    Cls
    Echo.
    Echo.   Felicitaciones
    Echo.
    Echo.    Completaste
    Echo.     El Nivel
    Echo.
    Echo.
    Pause >nul
    Exit

    :Lose
    Cls
    Echo.
    Echo.    Has Perdido
    Echo.
    Echo.  Intenta de Nuevo
    Echo.
    Echo.
    Set "MovL="
    Pause >nul
    Goto :Vars

    :Nivel_1
    For %%a in (X1Y1,X1Y2,X1Y4,X1Y7,X1Y8,X1Y11,X2Y1,X2Y14,X2Y15,X3Y1,X3Y3,X3Y5,X3Y10,X3Y12,X4Y1,X4Y7,X5Y9,X5Y10,X5Y11,X6Y5,X6Y9,X6Y11,X6Y15,X7Y1,X7Y5,X7Y11,X7Y15,X8Y3,X8Y11,X8Y15,X9Y3,X9Y7,X9Y11,X9Y15,X10Y11,X10Y15,X11Y5,X11Y10,X11Y11,X11Y15,X12Y1,X12Y2,X12Y8,X12Y13,X13Y3,X13Y6,X13Y7,X13Y8,X13Y9,X13Y13,X14Y1,X14Y15,X15Y3,X15Y4,X15Y7,X15Y11,X15Y12,X15Y14,X15Y15) do (Set %%a=%Bound%)
    For %%a in (X1Y3,X1Y5,X1Y6,X1Y9,X1Y10,X1Y12,X1Y13,X1Y14,X1Y15,X2Y2,X2Y3,X2Y4,X2Y5,X2Y6,X2Y7,X2Y8,X2Y9,X2Y10,X2Y11,X2Y12,X2Y13,X3Y2,X3Y4,X3Y6,X3Y7,X3Y8,X3Y9,X3Y11,X3Y13,X3Y14,X3Y15,X4Y2,X4Y3,X4Y4,X4Y5,X4Y8,X4Y9,X4Y10,X4Y11,X4Y12,X4Y13,X4Y14,X4Y15,X5Y1,X5Y2,X5Y3,X5Y4,X5Y5,X5Y6,X5Y7,X5Y8,X5Y12,X5Y13,X5Y14,X5Y15,X6Y1,X6Y2,X6Y3,X6Y4,X6Y6,X6Y7,X6Y8,X6Y10,X6Y12,X6Y13,X6Y14,X7Y2,X7Y3,X7Y4,X7Y6,X7Y8,X7Y9,X7Y10,X7Y12,X7Y13,X7Y14,X8Y1,X8Y2,X8Y4,X8Y5,X8Y6,X8Y7,X8Y8,X8Y9,X8Y10,X8Y12,X8Y13,X8Y14,X9Y1,X9Y2,X9Y4,X9Y5,X9Y6,X9Y8,X9Y9,X9Y10,X9Y12,X9Y13,X9Y14,X10Y1,X10Y2,X10Y3,X10Y4,X10Y5,X10Y6,X10Y7,X10Y8,X10Y9,X10Y10,X10Y12,X10Y13,X10Y14,X11Y1,X11Y2,X11Y3,X11Y4,X11Y6,X11Y7,X11Y8,X11Y9,X11Y12,X11Y13,X11Y14,X12Y3,X12Y4,X12Y5,X12Y6,X12Y7,X12Y9,X12Y10,X12Y11,X12Y12,X12Y14,X12Y15,X13Y1,X13Y2,X13Y4,X13Y5,X13Y10,X13Y11,X13Y12,X13Y14,X13Y15,X14Y2,X14Y3,X14Y4,X14Y5,X14Y6,X14Y7,X14Y8,X14Y9,X14Y10,X14Y11,X14Y12,X14Y13,X14Y14,X15Y1,X15Y2,X15Y5,X15Y6,X15Y8,X15Y9,X15Y10,X15Y13) do (Set %%a=%Space%)
    Set "X7Y7=%Exit%"
    Goto :Eof

    :Keyboard
    Echo. Cargando...
    (
    echo n keyboard.dat
    echo e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
    echo e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
    echo e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
    echo rcx
    echo 002E
    echo w0
    echo q
    echo.
    )>keyboard.dat
    type keyboard.dat|debug>NUL 2>&1
    del /f/q/a "keyboard.exe">NUL 2>&1
    ren keyboard.dat "keyboard.exe"
    Goto :Eof

    saludosss


    204
    Batch / Bash / proteger carpeta
    « en: Noviembre 23, 2011, 01:55:52 pm »
    hola
    bueno vamos a proteger una carpeta con batch

    Primer batch con nombre: abrir.bat

    Código: [Seleccionar]
    ren seguridad.{21EC2020-3AEA-1069-A2DD-08002B30309D} seguridad

    Otro batch con el nombre: cerrar.bat

    Código: [Seleccionar]
    ren seguridad seguridad.{21EC2020-3AEA-1069-A2DD-08002B30309D}

    Ahora hacemos una carpeta llamada seguridad

    Al hacer doble click en el bat cerrar la carpeta queda como un acceso al panel de control
    por lo tanto todo lo que tenia la carpeta no se puede ver

    saludoss

    205
    Programación Web / Re:Proyecto: Curso/Taller PHP&MYSQL by W4rning
    « en: Noviembre 22, 2011, 05:57:42 pm »
    te voy a seguir gracias bro

    206
    Batch / Bash / Re:HGP-USBpC sTeaLer
    « en: Noviembre 22, 2011, 01:23:40 pm »
    Este esta muy bueno me interesa gracias bro

    saludosss

    207
    Programación Web / Re:PHP - POO (Modelo Vista-Controlador)
    « en: Noviembre 21, 2011, 09:15:56 pm »
    Muy bueno kid

    estudiano muy buena info me sirve

    graciasssssssss

    208
    Programación Web / Re:[Tutorial] Trucos Para Configurar HTACCES
    « en: Noviembre 21, 2011, 01:23:49 pm »
    una info muy util

    gracias kid

    209
    Batch / Bash / Eliminador de Procesos
    « en: Noviembre 21, 2011, 10:51:06 am »
    Hola

    Hoy les traigo un Eliminador de Procesos

    Código: [Seleccionar]
    @echo off
     
    rem NOTAS DEL AUTOR #############################################################
    rem # ##
    rem #Autor: Keilcpc (http://miblogbydefault.blogspot.com/) ##
    :: #Fecha de Creacion: 22/11/2009 Domingo y Martes 24/11/2009 ##
    rem # ##
    rem # Recuerda que este codigo es gratuito, si copias y/o modificas ##
    rem # el codigo, recuerda siempre al autor original, gracias. ##
    rem #############################################################################
     
    Title ELIMINADOR DE PROCESOS VERSION 0.1.20 by Keilcpc
    cls
    color 1f
    :inicio
    cls
    echo.
    echo ###########################################################
    echo # #
    echo # Eliminador de procesos #
    echo # Version: 0.1.20 (by keilcpc) #
    echo # #
    echo # http://miblogbydefault.blogspot.com/ #
    echo # COPIA Y/O MODIFICA, PERO RECUERDA AL AUTOR ORIGINAL #
    echo ###########################################################
    echo.
    Echo.
    Echo.
    Echo Menu Principal
    Echo._______________
    Echo.
    Echo 1. Introcudir el nombre del proceso (Sintaxis: nombreproceso.exe)
    Echo 2. Crear una lista de procesos para eliminarlos automáticamente.
    echo 3. Salir del Script Batch (lo que estas viendo ahora mismo, jeje)
    echo.
    set /p menup=Escribe el numero de la opcion elegida (Sin punto):
    if %menup%==1 goto opuno
    if %menup%==2 goto opdos
    if %menup%==3 exit
     
     
    :opuno
    cls
    Echo Introduce nombre del proceso:
    Echo.
     
    set proc=
    set /p proc=
     
    if defined proc (
    Echo.
    taskkill /F /IM %proc%
    pause>nul
     
    ) else (
    echo.
    echo Pulsa CTRL+ALT+SUPR y mira en la pestana PROCESOS
    echo.
    echo Sintaxis: nombreproceso.exe
    echo.
    pause
    )
    goto:inicio
     
    :opdos
    cls
    :opmuno
    cls
    echo.
    Echo Introduce nombre de proceso para introducir en la lista:
    echo (SINTAXIS: nombreproceso.exe)   
    Echo.
    set num=
    set /p num=
    echo taskkill /F /IM %num% >> Eliminador_Automatico.bat
    cls
    echo.
    Echo Menu [Lista de nombres]
    Echo.____________________________
    Echo.
    Echo 1. Introcudir mas nombres de procesos a la lista (Sintaxis: nombreproceso.exe)
    Echo 2. Volver al menu principal
    echo.
    set /p menup=Escribe el numero de la opcion elegida (Sin punto):
    if %menup%==1 goto opmuno
    if %menup%==2 goto inicio
     
    ::FIN DEL SCRIPT BATCH

    saludosss

    210
    Batch / Bash / Re:AV-Killer Hendrix
    « en: Noviembre 20, 2011, 10:29:02 pm »
    gracias amigo por aportar

    probando.....

    saludossss

    Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ... 46
    • SMF | SMF © 2013, Simple Machines
    • XHTML
    • RSS
    • WAP2
    Va un mudo y le dice a un sordo: Hack x Crack usa cookies. Pues eso... Learn more