Is it possible to pass an executable to an MS-DOS program?
-
06-09-2019 - |
Question
Is it possible to pass an ELF 32-bit LSB executable(a.exe), version 1 (SYSV)
to a MS-DOS executable (EXE) (b.exe), OS/2 or MS Windows
as an argument? The reverse also?
Solution
Go to the command line and (assuming you want to pass the path to 'a.exe') type "a.exe /?"
Does it come up with instructions on how to pass 'b.exe' to it?
OTHER TIPS
Rather than pass the executable, you could pass the path to the executable?
No, it is not possible to pass in the exe via the command line, the closest you could come to would be to pipe it in, but you would have to do a setmode on stdin to binary. But the better solution would be to pass in a path to the exe to your emulation loader, have it load the exe and pass the data by buffer/pointer/reference to the emulator.
I believe this is possible using wine, on Linux.