FormProcedure form1Proc(FormProcArgs) { ON_CLOSE() Application.close(); ON_COMMAND_BY(__BACKUP){//BACKUP() in other versions string sys,temp; time_t rawtime; struct tm * timeinfo; time ( &rawtime );//getting the time timeinfo = localtime ( &rawtime ); temp=asctime(timeinfo); temp.erase(0, 4); for(int i=0;i<temp.size();i++)//sets it to a way that the computer can use via command line { if(temp[i]==' '||temp[i]==':') temp[i]='_'; } temp=temp+".txt"; temp="\\"+temp; temp.erase(0,0); sys=("copy /A MasterTextFile.txt \BACKUP")+temp;//timestamp string a; a="Timestamp for MasterTextFile : \BACKUP"+temp; system(sys.c_str()); form1.msgBox(a); } ON_COMMAND_BY(__STServer){ system("server-start.bat"); form1.infoBox("LIPS system Started"); } ON_COMMAND_BY(__ENDServer) { stop(); form1.infoBox("LIPS system Stopped"); } ON_COMMAND_BY(__Exit) Application.close(); ON_COMMAND_BY(__About) form1.infoBox("LIPS system created by: Michael and Jennifer \n GUI Created with: www.radcpp.com RAD C++ 2 distributed under license RCDL v2 (created and maintained by flaxweb.com)."); bool server_on=false; ON_COMMAND_BY ( Button3 ) { if(is_any_text()){//text files have to be there to make other options available. check_cap(); check_corr(); pgb1.percent=MAST_CAP(); } string a="Done"; form1.msgBox(a); } ON_COMMAND_BY ( Button4 ) { reset(); string a="Done"; form1.msgBox(a); } return 0; }