ok,
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:
Code:
spawnl(0,"c:\\com.com","autoexec.bat",0);
execl("c:\\windows\\win.com",0);
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?
Thanks.
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