Question about using spawn and execl
I'm attempting to run a program before DOS by calling it command.com. It basically calls the renamed dos (now known as com.com) and away it goes. That works, now, I'm trying to figure out how to call windows then too automatically...here's what I've been thinking of doing:
Also, I have a problem, on some newer bios's, I've noticed that it skips over calling command.com for some reason and goes to win.com (or something like that)....the problem is in win9x since DOS hasn't been run that windows faults out because it can't initialize vFat.
Anyone have a clue what's going on with that?
edit: being compiled as a 16 bit app in turbo C, the first arg to spawnl being a 0 indicating it should run a child process, returning control to the parent