Basically there 2 methods to do this, i think. The first is to use function “system(“dir”)”, and it is defined in the file stdlib.h.
The second method is use exec… family functions, that is, function exec with e, l, v, p suffix. See http://msdn2.microsoft.com/en-us/library/431x4c1w(VS.80).aspx for more information.