Zip.Extract Help PLEASE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jcuster
    Indigo Rose Customer
    • Jul 2001
    • 133

    Zip.Extract Help PLEASE

    The problem is The Zip.Extract does not extract the file.

    Ssrce = H:\BCKUP-<ASSETAG>\IE_Favorites
    Sdest = Shell.GetFolder(6)

    Note: I tried Sdest in many places.

    Code:
    Favfle = Ssrce.."Backup.zip"
    
    --cycle and copy each file , calling callback function named: COPYCB1()
    
    	Zip.Extract(Favfle, {"*.*"}, Sdest, true, true, "", ZIP_OVERWRITE_NEWER, COPYCB1);
    	MDerror = Application.GetLastError()
    	if MDerror > 0 then
    		SetupData.WriteToLogFile(MDerror.." Error could not copy from the "..Sdest.."Backup.zip\r\n", true);
    	end

    Zip.GetContents can see the file and Zip.Add created the file.

    I don't see anything I'm doing wrong..
  • JXBURNS
    Forum Member
    • Apr 2001
    • 363

    #2
    How about checking in more detail for the error rather than just whether there is an error at all?

    Code:
    if(nLastError ~= 0)then
    Dialog.Message("Error",_tblErrorMessages[nLastError])
    end
    Has Sdest been defined somewhere?

    What does COPYCB1 do and does it work correctly?

    John

    Comment

    • jcuster
      Indigo Rose Customer
      • Jul 2001
      • 133

      #3
      Originally posted by JXBURNS View Post
      How about checking in more detail for the error rather than just whether there is an error at all?

      Code:
      if(nLastError ~= 0)then
      Dialog.Message("Error",_tblErrorMessages[nLastError])
      end
      Has Sdest been defined somewhere?

      What does COPYCB1 do and does it work correctly?

      John
      COPYCB1 reports progress to a pregress screen.

      MDerror has returned no errors.

      Comment

      • jcuster
        Indigo Rose Customer
        • Jul 2001
        • 133

        #4
        Originally posted by jcuster View Post
        COPYCB1 reports progress to a pregress screen.

        MDerror has returned no errors.
        Thanks. I got it now by turning on extended errors in the log.

        There was an error relating to the callback function.

        Comment

        Working...
        X