EXE2OS2 is used to convert MS-DOS programs to OS/2 (including presentation manager) and Windows programs. The syntax of EXE2OS2 is:
EXE2OS2 options programnames
programnames specifies one or more .EXE files to be converted. The following options are available with EXE2OS2:
|
−EXE pathname\ |
Specifies where to find the DOS .EXE files |
|
−OS2 pathname\ |
Specifies where to place the converted files |
|
−DUMMY pathname\ |
Specifies where to find the dummy files needed for the conversion |
|
−PM |
Specifies conversion to Presentation Manager programs (with .PM extension) |
|
−WINDOWS |
Specifies conversion to Windows programs (with .WIN extension) |
|
−FONT |
Can be used with -windows to make a program execuable direcly after conversion. Normally you have to run RC against the program to provide it with resources such as an icon and Title, as described here. |
|
−DLL |
Specifies conversion to a DLL rather than a program (with .DLL extension) |
If you use the −EXE,−OS2 or −DUMMY options it is important to put a trailing backslash after the pathname, unless it just refers to the current directory on another drive (e.g. −OS2 d: )
OS/2 programs are created with .OS2 extension. These, and .WIN and .PM files need to be renamed to .EXE to run on the target operating system.
The command:
EXE2OS2 DBASE.EXE −EXE C:\WORK\ −OS2 C:\OS2WORK\ −DUMMY C:\DP4\DUMMY\converts the DOS program C:\WORK\DBASE.EXE to the OS/2 program C:\OS2WORK\DBASE.OS2.