//parameter treatment
CString strFolderPath,strSetFlPath,strFlag;
strFolderPath = argv[1];
strSetFlPath = argv[2];
strFlag = argv[3];
if (strFlag.IsEmpty()||strFolderPath.IsEmpty()||strSetFlPath.IsEmpty())
{
cout<<endl<<"Error:"<<endl<<"the parameter number is not right"<<endl;
return 1;
}
//system flag
CString WINFLAG = "/n##########dos/windows##########/n";
CString UNIXFLAG = "/n##########unix/linux##########/n";
//create set_file to store all disperse confg
CStdioFile fileSetConfg;
if (!fileSetConfg.Open(strSetFlPath,CFile::modeCreate|CFile::modeReadWrite))
{
cout<<endl<<"Error:"<<endl<<"create set_file failed,make sure the path"<<strSetFlPath<<"is valid"<<endl;
return 1;
}