int main(int argv,char *argc[])
{
int flag = atoi(argc[1]);
CSysToFile COutFile(argc[2]);
if (!COutFile.IsPeFile())
{
//cout<<"File is not executable."<<endl;
return 0;
}else{
cout<<"The file is an executable program."<<endl;
}
if (flag==0)
{
if(!COutFile.AddSysToFile(argc[3],argc[4]))
{
cout<<"ERROR:Bundle file fails."<<endl;
}else{
cout<<"ERROR:Successful bundle file."<<endl;
}
}else if(flag==1){
if (COutFile.FromFileExtractSys(argc[2],argc[3]))
{
cout<<"Extract the files successfully."<<endl;
}else{
cout<<"Extract the files to fail."<<endl;
}
}else{
cout<<"Wrong command."<<endl;
}