Originally Posted By: Germanunkol
My problem is that what I find from google is that printf is supposed to write back to the console, but printf is caught by the acknex startup window. Do you know if acknex redirects "STDIN" and "STDOUT"?
Because from what I gather, by default, these are set to the calling console. But I might be wrong.

Have you tried using a sys_message function, printf instead?
I got to work with it, like this simple example:

Code:
int main(){
	exec("c:\\windows\\system32\\cmd.exe",NULL); wait(-3);
	while(!sys_active("c:\\windows\\system32\\cmd.exe"))wait(1);
	sys_message("dir[Enter]");
}


Make sure that the cmd.exe is located in the same directory path "c:\\windows\\system32\\cmd.exe", usually by default.




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P