command2 = copyb + quotes + rootPath + "unzipsfx.exe" + quotes + " + N6Setup.zip N6Setup.exe";
command2 = copyb + quotes + rootPath + "unzipsfx.exe" + quotes + " + NSSetup.zip NSSetup.exe";
int ReplaceINIFile(){	CString command1,command2,commandReadme;	CString zipName("N6Setup.zip");	CString exeName("N6Setup.exe");	CString copyb = "copy /b ";	char	olddir[1024];	GetCurrentDirectory(sizeof(olddir), olddir);	if(SetCurrentDirectory((char *)(LPCTSTR) xpiDstPath) == FALSE)		return FALSE;	CString Src = nscpxpiPath + "\\" +zipName;	CString Dst = xpiDstPath + "\\" + zipName;	if (!CopyFile(Src, Dst, FALSE))		DWORD e = GetLastError();//	command = quotes + rootPath + "nszip.exe " + quotes + spaces + exeName + spaces + "config.ini";	command1 = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + zipName + spaces + "config.ini";	ExecuteCommand((char *)(LPCTSTR) command1, SW_HIDE, INFINITE);//	Copy the Readme file to the core directory and insert it inside the N6Setup.zip**********	CString readmePath = GetGlobal("ReadMeFile");	CString replaceReadme = xpiDstPath + "\\Readme.txt";	if (!CopyFile(readmePath, replaceReadme, FALSE))		DWORD e = GetLastError();	commandReadme = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + zipName + spaces + "Readme.txt";	ExecuteCommand((char *)(LPCTSTR) commandReadme, SW_HIDE, INFINITE);// Finished copying readme and inserting into the zip**********	command2 = copyb + quotes + rootPath + "unzipsfx.exe" + quotes + " + N6Setup.zip N6Setup.exe";//	copy /b unzipsfx.exe+letters.zip letters.exe	///////////////////////////////////////////////////////	CString copycat = "copycat.bat";	ofstream cc(copycat);	cc << command2 <<"\necho off \ncls\n";	cc.close();	CString command3 ="copycat.bat";	///////////////////////////////////////////////////////	ExecuteCommand((char *)(LPCTSTR) command3, SW_HIDE, INFINITE);	DeleteFile("copycat.bat");	CString unzipN6 = quotes +rootPath + "unzip.exe"+ quotes + "-o" + spaces + quotes + zipName + quotes;	ExecuteCommand((char *)(LPCTSTR) unzipN6, SW_HIDE, INFINITE);	DeleteFile(zipName);	SetCurrentDirectory(olddir);	return TRUE;}