Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML TO EXE
#14
(12-22-2009, 11:49 PM)Extasey Wrote: In a new thread?
I don't mind, its not mine after all.
No, to end this thread. The man wants a conversion no? Well, here is the program:
Code:
:: B2bat (binary to bat)

:: Author: lShadowl;The Shadow

:: Realese date:24/8/09

:: Realese version:1.0

:: Tested in Win Xp pro sp3

:: File size limit: 64kB

:: Info: Converts any file into a batch script.

:: Syntax: b2b <in file> <out script>

       @echo off

:b2b

setlocal enabledelayedexpansion&& set ms=%2&& set mos=%1

if not defined ms (echo Syntax: b2b ^<in file^> ^<out script^>&& goto:eof) else (echo.Working...)

echo.exit|cmd/K prompt $_rcx$_$_q>$

echo set cx=%%1>CX.bat

debug %1<$ | find "CX">_.bat&& call _

set/a ecx=0x100+0x%cx%

set hexstr=0123456789ABCDEF&& set sz=

:loop2

set/a ths=%ecx% %% 16

call :evals %%hexstr:~%ths%,1%%

if /I %ecx% GEQ 16 (set /A ecx=%ecx%/16&& goto:loop2) else (goto:kg)

:evals

set sz=%1%sz%&& goto:eof

:kg

echo.exit|cmd/K prompt $_d 100 %sz%$_q>$

type $ | debug %1>$.t

(echo set ff=createobject("scripting.filesystemobject"^)&& echo set rr=ff.opentextfile("$.t",1^)&& echo aa = rr.readall

echo rr.close&& echo r1 = Replace(aa,">",""^)&& echo r2 = Replace(r1,"<",""^)&& echo r3 = Replace(r2,"&",""^)

echo r4 = Replace(r3,"|",""^)&& echo set bb=ff.opentextfile("$.t",2^)&& echo bb.write r4)>rp.vbs&& rp.vbs

for /f "tokens=1,* delims=]" %%A in ('"type $.t|find /n /v """') do (set "current=%%B"

    if defined current (call set current=!!current:-= !!&& echo !current!>>$) else echo.>>$)

echo.exit|cmd/K prompt $_::Script by B2bat - B2bat by lShadowl$_       @echo off$_($_echo n b2bat.>%ms%

for /f "tokens=* skip=7 delims=%%a" %%a in ($) do (set csl=%%a&& echo echo e!csl:~5,53!>>%ms%)

:brk

echo exit|cmd/K prompt $_echo.$_echo rcx$_echo %sz%$_echo w$_echo q$_echo.$_)$Gda.t$A$A rem >>%ms%

echo.exit|cmd/K prompt $_debug$Lda.t$Gnul$_ren b2bat.exi %mos%$A$A rem >>%ms%

echo.Done.

goto:eof
Do what thou wilt shall be the whole of the Law. Love is the law, love under will.
.::The Rights of Man::.
Reply


Messages In This Thread
HTML TO EXE - by Sagittarius - 12-22-2009, 05:23 AM
RE: HTML TO EXE - by Extasey - 12-22-2009, 05:31 AM
RE: HTML TO EXE - by Grizzly - 12-22-2009, 06:00 AM
RE: HTML TO EXE - by Jordan L. - 12-22-2009, 10:27 PM
RE: HTML TO EXE - by DAMINKā„¢ - 12-22-2009, 10:33 PM
RE: HTML TO EXE - by Canoris - 12-22-2009, 11:01 PM
RE: HTML TO EXE - by Extasey - 12-22-2009, 11:34 PM
RE: HTML TO EXE - by Canoris - 12-22-2009, 11:35 PM
RE: HTML TO EXE - by Extasey - 12-22-2009, 11:36 PM
RE: HTML TO EXE - by Jordan L. - 12-22-2009, 11:37 PM
RE: HTML TO EXE - by Extasey - 12-22-2009, 11:42 PM
RE: HTML TO EXE - by Canoris - 12-22-2009, 11:47 PM
RE: HTML TO EXE - by Extasey - 12-22-2009, 11:49 PM
RE: HTML TO EXE - by Canoris - 12-22-2009, 11:51 PM
RE: HTML TO EXE - by Extasey - 12-22-2009, 11:55 PM
RE: HTML TO EXE - by Sagittarius - 12-26-2009, 08:33 AM
RE: HTML TO EXE - by Grizzly - 12-26-2009, 09:46 AM
RE: HTML TO EXE - by Canoris - 12-26-2009, 09:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Contact form for HTML Crystal 36 10,836 05-24-2013, 05:51 PM
Last Post: Akai
  Helping with HTML and CSS Ambitious 0 686 08-28-2011, 01:18 PM
Last Post: Ambitious
  Anyone have any free HTML resources? Scalise 7 1,741 06-01-2011, 04:00 AM
Last Post: !LoL
  Mr. Doob :: HTML 5 Examples Gaijin 10 2,533 02-17-2011, 12:33 AM
Last Post: Gaijin
  My first HTML / CSS project. Jordan L. 11 1,647 04-09-2010, 09:44 AM
Last Post: Jordan L.

Forum Jump:


Users browsing this thread: 3 Guest(s)