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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top