From b3bffc0668fa8c092568b3f9bc625d885b8cc209 Mon Sep 17 00:00:00 2001 From: "varada%netscape.com" Date: Fri, 7 Jan 2000 02:10:47 +0000 Subject: [PATCH] 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 --- mozilla/cck/driver/interpret.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/mozilla/cck/driver/interpret.cpp b/mozilla/cck/driver/interpret.cpp index d5a8f15b2a6..4b955285ee6 100644 --- a/mozilla/cck/driver/interpret.cpp +++ b/mozilla/cck/driver/interpret.cpp @@ -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