PDA

View Full Version : Convert .com to .exe



reynolds
21st June 2003, 18:52
Is it possible to convert DOS executables - .com - to Win32 - .exe ? Are there any utilities about to do this?

AtW
21st June 2003, 22:15
hard - some code won't even work, assuming you will try to run it on NT, ie direct hardware access will cause exceptions.

normally .com's were written in ASM and are less than 64kbytes, this means it can be disassembled and re-written with relative ease. I can't see the point however, what this .com does that you cant do in win32 already???

reynolds
22nd June 2003, 17:37
I want to associate an icon with the executable, im not sure you can do that with a .com file.

AtW
22nd June 2003, 20:46
dont be silly then - create shotcut with its own icon that would point to .com file, or - if you want to be posh create simple win32 exe which would spawn .com, you can even add .com to .exe as a resource to extract it dynamically and then run it to pretend there is only one file LOL

expat
11th July 2003, 11:42
and I bet there are no viruses still around that infect coms.

AtW
11th July 2003, 23:47
ah, good old times of virii - I have written anti virus to cure against one local developed virus that is present in Symantec database :)