i have used c++ to run windows commands in windows\system32. i am sure u r all very farmiliar with that. however, the procedure seems not to be able to access other .exe files in other folders on my machine. please advice.;)

Moved to the C++ forum.

There's an environment variable called PATH which tells cmd.exe where to look.
If the program is in a directory not on the PATH, then you need to specify the full path, say
D:\path\to\prog.exe

admire your ego!

I had tried that but still it didn't work. i was just missing something; got it now. thanx anyway

So what was your answer then?