Re: network tools

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mike Burrell proposes:
> data =3D {}
> fn =3D open("blah.exe", "rb")
> tempo =3D gets(fn)
> while sequence(tempo) do
>  data =3D data & tempo
>  tempo =3D gets(fn)
> end while
> addr =3D allocate(length(data))
> poke(addr, data)
> call(addr)

> something like that?  although i would personally do a system()

Robert Craig answered:
>No, it's not that easy. A .exe file is not just a bunch of machine code.=

>There's other information in there too. Loading a .exe into memory
>and running it is fairly complicated.

>Regards,
 > Rob Craig
  >Rapid Deployment Software

What Mike proposes, is possible with .com files, I think. Assemblers can
produce .com files, but I don't know if C(++) or other compilers can. But=

in that case a system() call from Euphoria would still be preferable.

Ad_Rienks at compuserve.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu