fix for bug #11600 - have removed the command function and added a new function for copyfile in accountsetup.ini because command.com cannot handle more than certain number of characters -

git-svn-id: svn://10.0.0.236/trunk@57060 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
varada%netscape.com
2000-01-07 02:10:47 +00:00
parent 00f78cad0b
commit b3bffc0668

View File

@@ -592,6 +592,27 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
return FALSE;
}
}
else if (strcmp(pcmd, "CopyFile") == 0)
{
// VerifySet checks to see if the first parameter has any value
// If (p1) then continue else show error dialog and return FALSE
char *p2 = strchr(parms, ',');
if (p2)
*p2++ = '\0';
else
p2 = "You must specify a second file to copy";
CString fchild =replaceVars(parms,NULL);
CString tchild = replaceVars(p2,NULL);
if (!CopyFile((LPCTSTR) fchild, (LPCTSTR) tchild, FALSE))
{
DWORD copyerror = GetLastError();
AfxMessageBox("Error - File couldnt be copied", MB_OK|MB_SYSTEMMODAL);
return FALSE;
}
}
else if (strcmp(pcmd, "Reload") == 0)
{
// Enforce the rule that Reload() cannot be followed by any