home *** CD-ROM | disk | FTP | other *** search
/ The Final Windows Shareware CD / _.img / winshare / filemgt / execom / execomb.doc next >
Text File  |  1998-09-07  |  6KB  |  125 lines

  1.                         EXE-Combine
  2.                   (C) 1994 Jeremy Lilley
  3.                 75060.2074@compuserve.com
  4.                     All Rights Reserved
  5.  
  6. Please READ this first - it's only TWO (2!) pages short.
  7.  
  8.  
  9. What exactly is this File ?!?
  10.  
  11.         This freeware program, EXE-Combine, allows you to combine both
  12. a DOS program and a Windows program into one EXE. When you run a Windows 
  13. program from DOS, it gives a message like "This program requires Windows" 
  14. - right ? With this program, it is possible to replace that message with
  15. a real program that you provide. If you had both a DOS version and a
  16. Windows version of something, you could place both the main EXE's in one
  17. file. Either that or you could add a more creative message than "This
  18. program requires Windows" - something that tells the user *how* to type
  19. "WIN" at the DOS prompt, etc. Cool, right ? 
  20.  
  21.         Try running many Windows programs from the DOS prompt. Most have
  22. the *stupid*, standard "This program must be run under Microsoft Windows"
  23. message. A few have better messages like Microsoft Word/Excel. If you like
  24. somebody else's message better, simply specify the name of the Windows file
  25. containing that message for the "DOS EXE" spot and EXE-Combine will extract
  26. it from the Windows file for you! (Make sure you have permission, right?) 
  27. There is even a check box if you want to have the extracted DOS EXE from 
  28. the Windows EXE saved to disk so that you can use/modify it. 
  29.  
  30.         There is one limitation that isn't my fault (don't you hate it
  31. when sentences start off like this?). The input DOS EXE must BE LESS THAN 
  32. 64K. The DOLTS who designed the Windows "New Executable" (its official 
  33. name) file format only left a 16 bit pointer to the beginning of the 
  34. Windows portion. The next 16 bits are left "reserved." Instead of using 
  35. those extra 16 bits so that the DOS portion could be almost unlimited in 
  36. length (up to 4 gigabytes), they left them unused. These are the same guys 
  37. who brought us EDLIN and decided than 640k was all we needed, folks! This 
  38. doesn't limit the Windows EXE's length, but the DOS EXE portion, again, can 
  39. only be 64k. To get around that, you could right write a small program that 
  40. would run the full-sized DOS EXE, but still....
  41.  
  42.  
  43. How do I use it ???
  44.  
  45.  
  46.         This is only a Windows program (it's free, so don't expect both
  47. DOS and Windows versions), but you load it, and it will have blanks for
  48. the 'DOS' and 'Windows' EXE's. For the Windows EXE, type in the name of
  49. the Windows file that you want to use, and for the DOS EXE, type in the 
  50. name of the EXE that contains the message (or program) that you want to
  51. run when you run it from DOS. (That was difficult) Hit the 'Go' button
  52. when you want to GO and the 'Quit' program when you want to QUIT. (Even
  53. harder, right ?) For example:
  54.  
  55. Windows EXE: NOTEPAD.EXE_____
  56.     DOS EXE: QEDIT.EXE_______
  57.  
  58. This will run NOTEPAD.EXE from Windows and QEDIT.EXE when run from DOS.
  59.  
  60. If you just wanted to add a message:
  61.  
  62. Windows EXE: MYPROG.EXE_______
  63.     DOS EXE: COOL_MSG.EXE_____
  64.  
  65. This would run your Windows MYPROG.EXE program when you're in Windows and
  66. COOL_MSG.EXE giving a cool "This Requires Windows" message from DOS.
  67.  
  68. Finally, supposed you thought that the DOS EXE message attached to Excel 
  69. was way cool and you wanted to add it to your Windows program (assuming
  70. Bill Gates lets you):
  71.  
  72. Windows EXE: WIN_PROG.EXE________
  73.     DOS EXE: EXCEL.EXE___________
  74.  
  75. EXE-Combine would extract the DOS portion from EXCEL.EXE and add it to your
  76. WIN_PROG!
  77.  
  78.  
  79. Like, how does this work ?
  80.  
  81.         Every Windows EXE is basically a small DOS EXE that has a pointer
  82. hidden in it to the Windows portion of the EXE. Unfortunately, a few 
  83. things have to be tweaked in the Windows header for it to work when the
  84. size is changed (actually, more than a few things have to be changed...).
  85. EXE-Combine simply discards the old DOS portion of the Windows EXE and adds
  86. the one that you specify to the beginning. After a few changes are made to
  87. the headers, it should work flawlessly.
  88.  
  89.  
  90. Legal Stuff:
  91.  
  92.         Make sure that you have the legal right or permission to modify
  93. the files that you modify with EXE-Combine. You ran it, I didn't. There are
  94. no warranties with EXE-Combine, and if it doesn't work or you hate it for
  95. some reason, you can just delete it. At no time will the author be liable
  96. for any damages or problems that result from the use or misuse of this
  97. product. Warning: if you try to make this program fail - IT WILL most 
  98. likely! Get along with it, and it will try to get along with your files.
  99. Also, you may distribute this as you would shareware, but it's free. Just
  100. don't leave out any of the files.
  101.  
  102.  
  103. Finally, why did I write this and why is it freeware ?!!??
  104.  
  105.         I am the author of a DOS executable encryption and protection
  106. program called Protect! EXE/COM, which is now v.5.0. I am ready to make
  107. a Windows version - something that would encrypt and compress Windows
  108. EXE's and check to see if the file has been modified. I used my Memorial
  109. Day weekend this year to see if I could write something that manipulated
  110. the Win-EXE format. I did, and that's why you get this for free. If you
  111. can use it, great. If not, don't. If this has been uniquely helpful to 
  112. you, please send me email or a postcard. Large gifts of cash are handy,
  113. too. :-) If you are interested about Protect! EXE/COM v.5.0 for DOS, 
  114. look for it on anything local to you and then tell me if you can't find
  115. it. "WinProtect" might be done sometime near the end of summer, 1994.
  116. Until then...
  117.  
  118. All materials to:
  119.  
  120.                 Jeremy Lilley
  121.                 2711 Oak View Circle
  122.                 Medford, OR 97504
  123.                 Compuserve: 75060,2074
  124.                 Internet: 75060.2074@compuserve.com
  125.