otya128 / winevdm

16-bit Windows (Windows 1.x, 2.x, 3.0, 3.1, etc.) on 64-bit Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

automatically run 16bit programs by other software

opened this issue · comments

Hi

This is not a bug or issue with winevdm but I try to figure out how I can let other programs, that run compiled EXE files (like compiler), use winevdm to run the EXE.

So I installed open watcom, can compile a 16 bit windows EXE but open watcom doesn't run the EXE in winevdm. I can however run it using winevdm manually.

Is there a way I can configure winevdm so another program like open watcom runs the compiled EXE inside winevdm automatically?

This may or not be the answer, but you'll only use two minutes by trying.

The problem may be that watcom is trying run the EXE with Windows' cmd.exe. You may be able to fix that by downloading FileOpen.exe linked below (equivalent of the Windows Start command) to the same folder with otvdm and then editing otvdm.ini to include the line:

dosemu=FileOpen.exe

Link to FileOpen.exe:

https://www.dropbox.com/scl/fi/dgwchwfgbcttulngvqakg/FileOpen.exe?rlkey=e21zoomxqjcapjxerasnxlme0&dl=0

EDIT: I got confused and thought that the exe was an old one I wrote in AutoIt. In fact, it's a C++ program written by Wengier Wu. Source code here (remove the .txt extension):

FileOpen.cpp.txt

It works!!! Thanks a lot :)

I've revised the comment above to provide the actual source of FileOpen.exe.