So I see that the security issues are valid but a little overblown. |
So you are saying one security hole elsewhere validates security holes in your own code? You don't understand secure computing.
Can someone point me to which lib system() uses? |
Each OS is different. The
system() call is usually a little more complex than most because of the hoops it has to jump through to conform to the standard.
I want to see if I can talk directly to the OS without the system function. |
Of course you can. You just need to
#include <appropriate>
headers and, depending on what you are doing, link with
-lappropriate libraries.
Since you are obviously on Windows, you should head over to MSDN for all the information you need for programming with the Windows API. Google's "I'm feeling lucky" button is also very good for getting information about specific functions. For example, if you Google "msdn CreateProcess" with the "I'm feeling lucky" button, you'll be directed here:
http://www.google.com/search?btnI=1&q=msdn+CreateProcess
Playing with the system API is always a bit more complex than playing with a fancy interface like the command shell. In this regard, various C and C++ libraries have been written to make doing stuff like that easier. Google "c++ application framework" for some good stuff.
Finally, if all your code is doing is calling various system routines, why use C++ at all? Why not just write yourself a nice, big batch file or
wsh (Windows Shell) script? Other languages you might find more to your liking include
Python,
Tcl, and
JavaScript.
Good luck.