7z

  • 30 Mar

    How to use 7z compression in Pascal Script

    How to use 7z compression in Pascal Script

    In version v2024.3.20.0 we added two new Pascal Script functions which allows you to use 7z compression.

    • Function ps7zCompress(Source: String; Destination: String; Password: String; Options: TStringList): Boolean;
    • Function ps7zCompressEx(Source: String; SourceFiles: TStringList; Destination: String; Password: String; Options: TStringList): Boolean;

    We added an example where we’ll be looking for a certain file called ‘trigger.txt’ within subfolders. If this trigger file is found we’ll compress the complete subfolder. The goal is to create a compressed backup of the complete subfolder content.

    • As Source we used a Windows Folder:

    limagito file mover windows folder as source

    • The content of subfolder ‘Sub’ looks like the following screenshot. It contains the ‘trigger.txt’ file which we’ll use to start the compressing mechanism.

    limagito file mover windows folder as source

    • We added the following include filename filter, because we are searching for the ‘trigger.txt’ only. This file will determine which subfolder we need to compress.

    limagito filemover filename include filter

    • Enable ‘Include Subdirectories’ within the Dir Filter’ setup:

    limagito filemover directory filter

    • We enable our ‘File Memory’ option because we only want to compress its subfolder once. If the trigger.txt is changed, then we’ll compress the subfolder again.

    limagito file mover file memory option

    – Function is set to ‘Copy’ because we want to keep the source files.

    limagito file mover function setup

    • Now add our ‘Pascal Script’ as Destination:
      • Please add the following script: link
      • Please adjust the following Const if needed:
        • ctZipPassword
        • ctZipExt
        • ctOutputPath

    7z compression in Pascal Script

    • The new ps7zCompress function has quite some options available which you can adjust if needed:
      • AddDirectory = False, True (default: True)
      • CompressionMethod = Copy, Deflate, Deflate64, BZip2, LZMA, LZMA2, PPMd (default: Deflate)
      • DuplicateCheck = None, Existing, All (default: Existing)
      • DuplicateAction = Overwrite, Error, Skip (default: Overwrite)
      • EncryptionMethod = None, AES128, AES192, AES256, ZipCrypto (default: ZipCrypto)
      • FileIncludeFilter = (default: *.*)
      • ScanSubDirectories = False, True (default: True)
      • Level = 0..9 (default: 7)
      • Threads = 1 .. 255 (default: 1)
      • Error = ‘Error Description if compression fails’

    7z compression in Pascal Script

    • RunTime Log Result:

    limagito filemover runtime log

    • Output Result:

    7z compression in Pascal Script

    If you need any help with our new ‘7z compression in Pascal Script’ feature, please let us know.

    Best Regards,

    Limagito Team

    #7z #pascalscript #managedfiletransfer #FileManagement #filetransfer

    By Limagito-Team Pascal Script ZIP ,
  • 26 Nov

    How to use 7zip compression methods

    How to use 7zip compression methods

    In version v2023.11.26.0 we added 7zip as a third Vendor option.

    limagito file mover destination options

    • Select ‘ZIP’ as Function and ‘Vendor 3 – 7z’ as API Vendor:

    limagito file mover 7zip compression methods

    • Depending on the ‘Archive Extension’ you can create different kind of compression files:

    limagito file mover zip options

    #zip #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this new option, please let us know.

    Best Regards,

    Limagito Team

     

    By Limagito-Team ZIP , ,
  • 27 Oct

    UNZIP Decompression formats

    Dear Users,

    Regarding LimagitoX v2019.10.27.0

    On request we’ve added support for some extra Decompression formats. Automatic conversion of non allowed (Unix) char in packed files and folders to underscores was also added. To achieve this we are using the famous 7z.dll. The dll (v16.04) and License file 7z.License.txt were added to the installer.

    Supported decompression formations (according to 7z docu):

    BZ2
    Rar
    Arj
    Z
    Lzh
    7z
    Cab
    Nsis
    Lzma
    Lzma86
    Pe
    Elf
    Macho
    Udf
    Xar
    Mub
    Hfs
    Dmg
    Compound
    Wim
    Iso
    Bkf
    Chm
    Split
    Rpm
    Deb
    Cpio
    Tar
    GZip
    Xz
    Ntfs
    Fat
    Mbr
    Vhd
    Mslz
    Flv
    Swf
    Swfc
    APM
    Ppmd
    TE
    UEFIc
    UEFIs
    SquashFS
    CramFS
    Ext
    VMDK
    VDI
    Qcow
    GPT
    Rar5
    IHex
    Hxs

    Regards
    Limagito Team

    By Limagito-Team ZIP , ,
SEARCH