views:

140

answers:

3

hi,

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?

regards

Renjith G

+1  A: 

Rather than pass the executable, you could pass the path to the executable?

ck
no effect...i have tried it twice
Renjith G
This is the answer. If you're having trouble with passing the path on the com mand line, you should show the code you used and what problem you had. I've done simulators before, and this is how it's done.
John Saunders
no other answers?
Renjith G
A: 

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.

ongle
A: 

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?

ChristianLinnell