Did you look at the link I sent? You said you hadn't look into it, but did you after I posted it? The system command should be able to do what you want.
OK, I wanna say thanks a million. program is working.
To all here's sample code
#include<iostream>
using namespace::std;
string answer="1";
int main(){
do{
cout<<"\n\n Press 1 to browse the internet?: ";
cin >>answer;
if(answer == "1"){
cout<<"\n\n Please wait..."
<<"\n Opening Notepad, please wait.....\n";
//EXECUTE NOTEPAD
system("C:\\Windows\\Notepad.exe");
//LIST FOLDER CONTENTS
system("cls");
system("dir c:\\windows\\system");
//CREATE A DIRECTORY
system("cls");
cout<<"\n\n Creating directory 'USERS', please wait...";
system("mkdir Users");
cout<<"\n\n Program will now exit...\n"
<<" ";
system("pause");
exit(1);
}
else{
cout<<"\n " <<answer
<<" is not a valid answer, try again\n";
fflush(stdin);
cout<<" ";
system("pause");
system("cls");
}
}while(answer!="1");
return 0;
}