File Mover Blog

  • 08 Oct

    Howto unzip JPG from ZIP files using Limagito File Mover

    Q: I would like to unzip JPG from a ZIP files. Every ZIP files contain JPG, XML. I would try to extract only JPG files from ZIP, but I can’t do it. All files are extracted, that obliges me to add deletion rule to delete XML files in the target folder.  Is it possible to build a rule, and ask for extract only .JPG files from ZIP ?

    A: In version v2021.10.8.0 we added a new Extract Mask option in the UNZIP Destination Setup to achieve this. We immediately added an include and exclude Extract Mask.

    • Extract Include Mask ( default *.* )
    • Extract Exclude Mask ( default ‘blanco’ )

    In this example we set the ‘Extract Include Mask’ to  *.jpg  so only jpg files form the zip (or other compressed file) will be extracted.

    Limagito File Mover Extract Mask

    #FileTransfer

    If you need any info about this ‘unzip JPG from a ZIP’ request, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team ZIP , ,
  • 07 Oct

    How-To Silent Install Limagito File Mover

    We are using Inno Setup as installer. Inno Setup is a powerful installer and has quite some optional command line parameters. Recently a customer had an issue trying to achieve a silent install. We fixed this in the installer starting from v2021.10.6.0

    Some examples, be sure the command is run elevated (As Administrator). We have dowloaded the 64bit installer in “C:\Test\Setup\”.

    Example of a silent install including our Web Remote option (one long line of command parameters):

    “C:\Test\Setup\setup.limagitox.x64.exe” /MERGETASKS=”web” /VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART /FORCECLOSEAPPLICATIONS

    Example of a silent install excluding our Web Remote option (one long line of command parameters):

    “C:\Test\Setup\setup.limagitox.x64.exe” /VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART /FORCECLOSEAPPLICATIONS

    Example of a silent install including our Application and Web Remote option (one long line of command parameters):

    “C:\Test\Setup\setup.limagitox.x64.exe” /MERGETASKS=”appuse,web” /VERYSILENT /SUPPRESSMSGBOXES /LOG /NORESTART /FORCECLOSEAPPLICATIONS

    #FileTransfer

    If you need any info about this ‘silent install’ option, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team How-to Installation ,
  • 01 Oct

    Immediate folder name as filename in Limagito File Mover

    Q: I am trying to append a folder name to a file name but having a little trouble. The file is under 1 or 2 subfolder. After the file move I would like to append the very last folder name to the file name , and I don’t want to copy the source folder structure. Can you help me.

    Limagito File Mover Subfolder Filename

    A: Yes this is possible using some Pascal Script. We’ll need two destinations.

    • The first destination must be our ‘Pascal Script’. This script will strip the immediate subfolder from the complete subfolder part.
    • The second destination will be a Windows folder (WIN). In this destination we’ll rename the file using the info from the first destination (pascal script).

    Limagito File Mover Destination Setup

    Let’s start with the first destination (Pascal Script):

    Var
      iList: Integer;
      tmpEntry: String;
      tmpList: TStringList;
    Begin
      psExitCode:= 1;
      // ... add your code here
      psVSA := Trim(psStringReplace(psFilePath, psSourcePath, ''));
      If psVSA <> '' Then
      Begin
        tmpList := TStringList.Create;
        Try
          tmpList.Delimiter := '\';
          tmpList.DelimitedText := psVSA;
          psVSA := '';
          // Iterate
          For iList := (tmpList.Count - 1) DownTo 0 Do
          Begin
            tmpEntry := Trim(tmpList.Strings[iList]);
            If tmpEntry <> '' Then
            Begin
              psVSA := tmpEntry;
              Break;
            End;
          End;
        Finally
          tmpList.Free;
        End;
      End;
      // Adjust
      If psVSA <> '' Then
        psVSA := psVSA + '_';
      // Debug
      psLogWrite(1, '', 'Stripped SubFolder: ' + psVSA);
    End.
    

    Limagito File Mover Pascal Script Setup

    Next we’ll setup our second destination (WIN):

    Limagito File Mover WIN as Destination

    Don’t forget to disable the ‘Create SubDir’ option if you don’t want to copy the source folder structure.

    Limgito File Mover Create Subfolder option

    File renaming setup:

    Limagito File Mover File Rename

    RegEx: (.*)

    Replacement: %VSA\1

    Limagito File Mover File Rename Setup

    RunTime Log:

    Limagito File Mover RunTime Log

    #FileTransfer

    If you need any info about this ‘Immediate folder name as filename’ question, please let us know.

    Best regards,

    Limagito Team

1 53 54 55 56 57 58 59 134
SEARCH