actually unregistered dude, i used internal DOS commands to do this...if someone disassembled it, they would find almost nothing but cout and system calls. The way i got my program to run DOS commands internally is: system calls. almost any system call will compile, but not all of them will work. See, if you used
Code:
#inlcude <iostream.h>
#include <windows.h>
int main()
{
cout<<" This Program Lists The Directory of C:\\";
system("Dir C:\\");
}
return 0;
that is the same command used to display the directory of drive C used in DOS..I think you will understand after that..and hope it helps...