home *** CD-ROM | disk | FTP | other *** search
- - 1 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- File conversion utility - EXE2COM v.2.00
- Copyright (C) 1991-1995 PSP Soft. All Rights Reserved.
- By Paul Shpilsher
- CIS: 71303,1465
- INTERNET: 71303.1465@compuserve.com
-
- Index:
-
- Copyright..........................2
- Freeware...........................2
- Distribution policy................2
- Legal Status, warranty.............2
- Other Comments.....................3
- EXE2COM............................3
- Limitations........................4
- Virus protection...................4
- Error Messages.....................4
- Misc...............................5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - 2 -
-
-
-
-
-
-
-
-
- COPYRIGHT:
- This program IS Copyright (C) 1991-1995 by: Paul Shpilsher (PSP
- Soft) Contact me if you have reason to believe this utility
- package has been subject to any malevolent tampering, or if you
- wish to receive a current, complete, unmodified and "guaranteed"
- virus-free copy.
-
- Although this utility package may be archived along with other
- software, including my own, the following pertains solely to THIS
- portion of it.
-
-
- FREEWARE:
- This program is FREEWARE. You may use, copy free of charge, but
- you may not change any of the files in the package.
-
- * NEVER change copyright statements: the copyright remains in my
- hands. I will not be as generous in providing FREE software in
- the future if I find that anyone has violated this (or any)
- requirement!
-
- * Program may not be sold or hired.
-
- DISTRIBUTION POLICY:
- You can distribute this utility package under the following
- conditions:
-
- * You ask no contribution from the receiver of this utility
- package except for a nominal copying charge not to exceed US $10
- (ten US dollars). (CD-ROM, tape, and similar large *shareware*
- collections are limited to a "reasonable", which may exceed US
- $10.)
-
- * ALL original files are distributed together.
-
- NOTE: Other than according to the above provisions, the SALE of
- this program or its parts for PROFIT, either alone or together
- with other software or hardware, requires a licensing agreement
- possibly providing for royalty payments. Please write for terms.
- (This program [the *entire* package] may be bundled, without my
- knowledge, with other FREE software.)
-
-
-
- LEGAL STATUS, WARRANTY:
- Since this program is licensed free of charge, the author, Paul
-
- - 3 -
- Shpilsher, provides absolutely no warranty of any kind, either
- expressed or implied, including, but not limited to, the implied
- warranties of fitness for a particular purpose.
-
- This program is provided "as is"; the entire risk as to the
- quality and performance of the program is with you. Should the
- program prove defective, you assume the cost of all necessary
- servicing, repair or correction.
-
- In no event will any copyright holder, or any other party who may
- modify and/or redistribute the program as permitted below, be
- liable to you for damages, including any general, special,
- incidental or consequential damages arising out of the use or
- inability to use the program (including but not limited to loss
- of data or data being rendered inaccurate or losses sustained by
- you or third parties or a failure of the program to operate with
- any other programs), even if such holder or other party has been
- advised of the possibility of such damages.
-
- OTHER COMMENTS:
- Although use of this program is FREE, donations are welcome to
- offset the costs of Borland TC++ and the distribution of this
- product. Half of all revenues and ALL profits will be sent to
- Compassion International, an organization which arranges
- long-term sponsorships in order to provide for the mental,
- physical and spiritual needs of impoverished children worldwide.
- [Other non-profit organizations may be substituted at your
- request.]
-
-
- EXE2COM:
- EXE2COM is a file utility similar to DOS's <<exe2bin>>. In other
- words this utility converts executable files (ext.EXE) to command
- files (ext.COM). The format of EXE-files are more complex than
- format of COM-files. A COM-format file is a binary image of the
- code and data of the program. The file must be less than 64K, and
- no segment-address relocation takes place. A EXE-format file
- containes a special header that directs loader in performing
- adjustments to segment references in a load module. In other
- words, EXE-file can have multiple segments of the code, data and
- stack; and it does not have restrictions on file size. Sounds
- complicated?! If you don't have a clue what I am talking about
- don't warry. The main idea is: COM-format files are much more
- simpler than EXE-format ones. Enough of the theory! So, DOS has a
- utility <<exe2bin>> to convert EXE-format files to COM-format.
- You might ask why bother to make another one. Well, <<exe2bin>>
- have some limitations: EXE-file has to have only one segment (no
- relocation table) and the entry point should be at PSP:100h. As I
- noticed that the most of the EXE-files don't go by these rules
- (they have relocation table and the entry point is different than
- PSP:100h). In these cases <<exe2bin>> will not work. So, I made
- up an utility <<EXE2COM>> that goes over these limitations.
-
-
-
- - 4 -
- Usage: EXE2COM file.exe [file.com] [/I]
- where: file.exe -> EXE-format source file
- file.com -> COM-format target file
- /I -> misc info ( how to reach me )
-
- Examples:
- To convert file PROG.EXE to PROG.COM:
- EXE2COM PROG.EXE PROG.COM
- or
- EXE2COM PROG.EXE
-
- To convert file PROG1.EXE to PROG2.COM:
- EXE2COM PROG1.EXE PROG2.COM
-
-
- NOTE: you do not have to specify the 2nd parameter
- if you want to get COM-file with the same name as
- the EXE-file. (see example 1)
-
- As a result of this program you'll get a COM-format file with the
- name you specified or with the default name. If all went Ok
- you'll get the message: PROG1.EXE => PROG2.COM , otherwise see
- ERROR MESSAGES. The target files (COM-format) usualy have less
- size than their EXE-file originals.
-
- LIMITATIONS:
- The source file should be less than 64K; source file should not
- have an overlay (the image size is equal the load size)!
-
- VIRUS PROTECTION:
- File EXE2COM.COM is protected with anti-virus driver VACCINE. It
- will keep most viruses away from this file. If your copy of
- EXE2COM is "sick" by a virus, the program will tell you that
- immediately. Also you will have an option to remove a virus.
- Prompt: File Damaged!!! [A]bort, [R]ewrite, [C]ontinue. Pressing
- key [A] will terminate program; [R] will attempt to restore
- original file and continue with a program; [C] will resume
- program. You can be false alarmed if you try to hack or compress
- EXE2COM.COM with PKLITE or similar programs. To prevent false
- alarms just leave EXE2COM.COM the way it is.
-
- ERROR MESSAGES:
-
- << Usage: EXE2COM file.exe [file.com] [/I] >>
- Cause and possible treatment:
- Your command arguments are wrong or absent.
- Review command line.
-
- << Can not read from disk >>
- &
- << Internal (LSEEK) >>
- Cause and possible treatment:
- Error in reading the source file. Check if the
- disk is Ok (FAT, physical damage).
-
- - 5 -
-
- << Can not open file >>
- Cause and possible treatment:
- The source file is present, but the program is
- unable to open it. Increase the number of Files=xx
- in the CONFIG.SYS. Or check network drive access
- priveleges.
-
- << Can not create file >>
- Cause and possible treatment:
- The source file might be a reserved device, the
- disk is write protected or has no free space. Check
- network drive access priveleges.
-
- << Can not write to disk >>
- Cause and possible treatment:
- Check free space on the disk. Check network drive
- access priveleges.
-
- << File has to be smaller than 64K >>
- Cause and possible treatment:
- Your source file is too big. Try to compress it
- (PKLITE).
-
- << Wrong type of file (not .EXE) >>
- Cause and possible treatment:
- Your source file is not an EXE-format file.
-
- << File size mismatch (overlay) >>
- Cause and possible treatment:
- The image size of the source file is different than
- the load size of it. (Possible overlay).
-
- << Not enough memory >>
- Cause and possible treatment:
- The utility needs more memory. Try to increase free
- RAM (remove TRS-type programs from RAM)
-
- MISC:
- ANYONE who finds a bug is encouraged to notify me. I will try to
- fix it. I will also try to respond to requests for alterations or
- enhancements, including customization.
-
- I am willing to take on new programming projects. I welcome
- challenges, but I am realistic about my abilities. Therefore, I
- will take suggestions, but I ask that you realize my limitations.
-
- If I choose to write a program for you, I can almost guarantee we
- can arrange some form of acceptable compensation for my efforts.
- I may ask nothing!
-
- I can be contacted on CompuServe 71303,1465 or on INTERNET:
- 71303.1465@compuserve.com
-
-
- - 6 -
- IF YOU CONTACT ME, tell me HOW, WHEN, and WHERE you obtained this
- program.
-
-
-
-
-
-
-