unzip

  • 27 Dec

    Unzip stream read error with Limagito File Mover

    Unzip Stream Read Error

    Q: We are having an issue with one of our rules. We are getting a couple of errors:

    limagito file mover stream read error

    A: We asked and received a test file. The reason of these errors was simple .. it wasn’t a zip file. The file had the extension .zip but it should have been .7z (= SevenZip compression) which is a different compression method. We use the extension in our file mover tool to determine which kind compression is used in the Source file.

    We added the following option: UNZIP as Destination, Use Archive Header to determine Format (v2023.11.21.0) [+]

    We asked the customer if we could help with the update, otherwise he could use: https://limagito.com/how-to-update-your-current-version-of-limagitox-file-mover/
    After the update we asked to enable ‘Use Archive Header to determine Format’ in the Unzip as Destination setup. In this case we’ll check the header of the file and try to recognize the compression format. If we don’t recognize the header we’ll use the file extension.
    limagito file mover unzip options
    Important, this option only works with ‘API Vendor 3 – 7z’
    limagito file mover unzip options
    It looks like that works! Thank you for your help!

    #zip #unzip #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘unzip stream read error’ question, please let us know.

    Best Regards,

    Limagito Team

     

    By Limagito-Team ZIP
  • 19 Sep

    How to unzip archives with a password

    Q: How to unzip archives with a password. We have some Zip folders I would like to automate unzipping for and they have a text password. The password will be the same every time.

    A: If you want to unzip you can use our (UN)ZIP as Destination option:

    limagito file mover unzip as destination

    – Select UNZIP as Function and set the Destination Directory:

    limagito file mover unzip archives with a password

    • Enter unzip password:

    limagito file mover unzip password

    If you need any info about this ‘unzip archives with a password’ question, please let us know.

    #zip #filetransfer #filemanagement

    Best regards,

    Limagito Team

    By Limagito-Team ZIP ,
  • 28 May

    Delete all contents of a destination folder before files are moved

    Q: Is there a way to delete all contents of a destination folder before files are moved/not just overwriting them? I am unzipping a large folder with files daily, most files are named the same thing so they can overwrite them. Have a few that are named with dates and times so they just end up staying in the folder.

    A: If the unzip folder is always the same, the following solution could help you. We added a script that will delete all files and subfolders when ‘On Rule Begin’ is triggered. The path you need to use in the script is the one you will use in your UNZIP as Destination setup.

    – Open Pascal Script Setup

    limagito file mover pascal script

    • Enable and Add the following ‘On Rule Begin’ Pascal Script. In this example our Unzip path = C:\Test\Out\UNZIP\

    Don’t forget to adjust the ctOutputPath const, must end with a \

    Const
      ctOutputPath = 'C:\Test\Out\UNZIP\';
    Begin
      psExitCode:= 1;
      // ... add your code here
      psLogWrite(1, '', 'Delete Tree: ' + ctOutputPath);
      psDeleteFiles(ctOutputPath, '*.*');
      psDeleteTree(ctOutputPath, True);
    End.

    Delete all contents of a destination

    #filetransfer #mft #filemanagement

    If you need any info  about this ‘Delete all contents of a destination’ request, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Pascal Script WIN ZIP ,
1 2 3
SEARCH