• 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 ,
  • 24 Mar

    How to authenticode sign an executable exe or dll

    How to authenticode sign an executable exe or dll

    In version v2024.3.24.0 we added an option to sign exe and dll files. We added some screenshots to get you started.

    • In our example we are using a Windows Folder as Source:

    limagito filemover windows folder as source

    • We added the following filename include filter, only “*.exe” and “*.dll” files allowed:

    limagito filemover filename include filter

    • As Destination we added “SIGN”.
      • By default there will be ‘PDF Signatures’ Actions available. You can remove them all by selecting them one by one, right click and delete.
      • Next, add all four “Exe or Dll Signatures” Actions

    limagito file mover sign an executable

    • You can leave the setup of the ‘EXE/DLL Load’ Action as default:

    limagito file mover sign an executable

    • Adjust the ‘Exe/DLL Options’ Action as needed:
      • In our example we use the Timestamp Token TSA URL from comodoca.com
        • TSA= Time Stamp Authority

    limagito file mover sign an executable

    • “EXE/DLL Certificate” Action Setup:
      • We are using the certificate form an USB eToken because of EV Code Signing
        • “Smartcard CSP” option is empty > we’ll discover what smartcard or token is connected

    limagito file mover sign an executable

    • “Sign and save the EXE or DLL” Action setup:
      • Select the Destination directory of the Signed EXE or DLL files

    limagito file mover sign an executable

    • RunTime Log Result:

    limagito file mover runtime log result

    If you need any help with our ‘authenticode sign an executable’ option, please let us know.

    Best Regards,

    Limagito Team

    #codesign #managedfiletransfer #FileManagement @#filetransfer #comodaco #verisign

    By Limagito-Team SIGN , , , ,
  • 21 Mar

    How to map a network drive in limagito filemover

    How to map a network drive in limagito filemover

    In case you need to access shared network folders, you can use our ‘Network Drive Mapping’ option. When you are using our file mover engine as a service, then by default our tool will use the ‘logon as’ user account of the file mover service to access shared network folders. If this account is not allowed to access these folders, then you can use different credentials in the ‘Network Drive Mapping’ option. Multiple mappings to different network folders can be added.

    It is a good idea to set the ‘Recheck every x minutes’ option. This way drive mappings will be check every x minutes. This is helpful in case a network drive is lost for example due to a reboot of a server on your network. The recheck will restore the mapping within x minutes after the server is online again.

    GUI update since version v2023.3.21.0

    map a network drive in limagito filemover

    If you need any help with our ‘map a network drive’ option, please let us know.

    Best Regards,

    Limagito Team

    #networkdrive #managedfiletransfer #filetransfer #filemanagement

1 2
SEARCH