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.;)

Recommended Answers

All 4 Replies

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.