Quote Originally Posted by eswar_illuri
Yes, it's possible, To invoke the command prompt from C or C++ use the command system(), give the parameter as string like commands at command prompt, i.e

system("dir");

regards,
eswar
This won't work, because output will be to standard output. If you want to use system(...) you'll also need to redirect the standard output.