I see the thread is some years old, but I hope someone will respond..

I have the same question as Logikos, and I tryed SeventhStar's solution (and it works)...
but, if i want to use commands based on variables, like...

system(exec);
where exec is a string, problems arrise (because function system is taking only const char* variables..and mine are System::String)

Any suggestions, plz? (using Visual Studio 2005)