Test Foro de elhacker.net SMF 2.1

Programación => Scripting => Mensaje iniciado por: The Shadow en 18 Febrero 2008, 21:40 PM

Título: [batch] Funcion :H2D (convierte hexa a decimal)
Publicado por: The Shadow en 18 Febrero 2008, 21:40 PM
@echo off
::H2D
::Por: The Shadow|Shadow
::Info: Convierte un numero hexadecimal a decimal
::Parametros: %1=numero hexadecimanl
::Devuelve: %h2d%=numero decimal
:h2d
set dec="La sintaxis es: h2d [numero_hexadecimal]"
set /a dec=0x%1*1
echo %dec% && goto :EOF