Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    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..

  2. #2
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    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

  3. #3
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114
    Quote 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.

  4. #4
    Join Date
    Jul 2001
    Location
    Harrisburg, PA , USA
    Posts
    114

    Smile

    Quote 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.

Similar Threads

  1. Zip.extract and password
    By davels in forum Setup Factory 7.0
    Replies: 2
    Last Post: 06-19-2007, 03:21 AM
  2. Zip.Extract question!
    By odeen_c in forum AutoPlay Media Studio 6.0
    Replies: 14
    Last Post: 08-03-2006, 06:45 PM
  3. Zip.extract and 256-bit AES
    By alexsander_sc_br in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 10-20-2005, 11:42 AM
  4. Zip.Extract
    By renato in forum Setup Factory 7.0
    Replies: 3
    Last Post: 05-19-2005, 09:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts