Q&A

  • 01 Aug

    Q&A 22: move a file and rename the file so it includes the directory name

    Q: I’m trying to move a file that’s within 1 directory and rename the file so that it includes the directory name

    Source: C:\Source1\File.txt

    Destination: C:\Destination\Source1_File.txt

    I want it to take the directory name that it is contained in, then string it to the front of the filename, but move it to it’s destination C:\Destination\.

    We would only want it to pertain to the previous directory by 1 level.

    • C:\Source1\File1.txt => C:\Destination\Source1_File1.txt
    • C:\Source1\Sub\File2.txt => C:\Destination\Sub_File2.txt

    A: Yes this is possible using some ‘Pascal Script’

    Let’s start with the Source, we added a Windows folder:

    LimagitoX file Mover Windows Folder as Source

    In the ‘Directory Filter’ setup we enabled include scanning of subdirectories (optional, is not a must):

    LimagitoX file Mover Include Subdirectories

    Destinations setup, important the first destination must be a ‘Pascal Script’:

    LimagitoX file Mover Destination Setup

    First Destination should be a ‘Pascal Script’. We used ‘Source1’ as default PreFix for the Source Root Folder (you can adjust this):

    Var
      tmpPos: Integer;
      tmpSubDir: String;
    Const
      ctRootPrefix = 'Source1';
    Begin
      psExitCode:= 1;
      // ... add your code here
      psVSA := '';
      tmpSubDir := '%SFS';
      tmpPos := pos('\', tmpSubDir);
      If tmpPos<>0 Then
      Begin
        psVSA := Copy(tmpSubDir, tmpPos + 1, Length(tmpSubDir) - tmpPos);
        psLogWrite(1, '', 'Stripped Prefix from SubDir: ' + tmpSubDir + ' : ' + psVSA);  
      End
      Else
        psVSA := ctRootPrefix;   
    End.

    LimagitoX file Mover Pascal script

    Second Destination is a windows folder where the source files should be moved/copied to:

    LimagitoX file Mover Windows Folder as Destination

    Enable and setup File Renaming in the Windows Destination:

    LimagitoX file Mover File Renaming

    File Renaming setup:

    • RegEx:   (.*)
    • Replacement:   %VSA_\1

    LimagitoX file Mover File Renaming Setup

    RunTime Log result:

    LimagitoX file Mover RunTime Log

    Output Folder result:

    If you need any help , please let us know.
    Regards,
    Limagito Team
    By Limagito Q&A ,
  • 01 Aug

    Q&A 21: Generate a status file for each file which was successfully moved

    Q:  I need to know if a status file can be generated when a file is successfully moved that includes the source location?

    We would like a log file generated called 123456.pdf.log that contains the following data:

    Remote path: C:\upload\input\123456.pdf
    Affinity PDF has been transferred to distiller
    Delivery log name: C:\upload\output\123456.pdf.log

    The remote path is the location where the file was moved from
    The second line is just a text line
    The Delivery Log Name is the location where the file was placed and the name of the log file

    A: Yes this is possible using some Pascal Script.

    Let’s start with the Source. In our example it is a Windows Folder:

    ‘C:\Test\In_PDF\’.

    LimagitoX File Mover Windows Folder as Source

    Important, in the function Setup you need to set the ‘Destination Options’ to ‘Exit Cyclus on Error’. Reason is that we want to be 100% sure that the file was moved before we write the status file.

    LimagitoX File Mover Function Setup

    Destinations Setup, the first destination is the folder where the pdf needs to be moved to. The second destination is the ‘Pascal Script’ needed for the creation of the status file.

    LimagitoX File Mover Destinations

    We added a Windows folder as first Destination. Default Setup is ok.

    LimagitoX File Mover WIN as destination

    The second Destination is our ‘Pascal Script’ needed for the creation of the status file:

    Var
      tmpList: TStringList;
      tmpLogName: String;
      tmpLogPath: String;
    Const
      ctLogRootDir = 'C:\Test\Out\PDF';
    Begin
      tmpLogPath := ctLogRootDir + '%SFS\';
      psExitCode:= 1;
      // ... add your code here    
      tmpList := TStringList.Create;
      Try
        tmpLogName := '%SFN.log';
        Try    
          tmpList.Add('Remote path: %SFP%SFN'); 
          tmpList.Add('Affinity PDF has been transferred to distiller');
          tmpList.Add('Delivery log name: ' + tmpLogPath + tmpLogName);
          // Save
          psLogWrite(1, '', 'SaveToFile: ' + tmpLogPath + tmpLogName);
          tmpList.SaveToFile(tmpLogPath + tmpLogName);   
        Except
          psLogWrite(1, '', 'Log Create Error');
        End;  
      Finally
        tmpList.Free;
      End;  
    End.

    LimagitoX File Mover Pascal Script as Destination

    RunTime Log Result:

    Output Folder Result:

    If you need any help , please let us know.
    Regards,
    Limagito Team
    By Limagito Q&A
  • 31 Jul

    Q&A: Need more Details on LimagitoX File Mover Application

    Q: Need more Details on Limagito Application.  We were evaluating the Limagito File Mover application and are very much interested to implement it in our IT system. We need your help to get below info so that i can discuss with our Management on Limagito implementation.

    1) Do you have the minimum system requirement/Benchmark for Limagito application? We have 1000s of files that moved on daily basis in our IT system.

    This depends on the amount of rules and options you are using. Our advice is to use a server with more than 4GByte RAM. Often virtual machines are used with 4 Gbyte RAM. We prefer a bit more because the OS itself often takes quite a bit. Sometimes some extra services are running.  Our File Mover uses threads heavily so 4 cpu cores is a minimum. Our advice is to increase these to 8 cores. FYI, when you have 200 rules who are triggered regularly (which is not abnormal, we have users running +/- 400 rules) then this means that you are running 200 small applications. So you need quite some power (core and memory).

    2) How many interfaces/rules can be created in Limagito? is there any limitation? How many threads/Rules can be executed in parallel/Simultanious?

    Our advice is to use a maximum of 400 rules per instance of our File Mover. If you need more, please install a second instance of our file mover.

    3) What is the license cost of Limagito application?

    License Link

    4) What is the support cost & SLAs of Limagito application?

    July 2020, support is included in the Licence (1 year for Single+ and Site+, 3 years for Corporate+ License type)

    5) Do you have any sort of documentation that we can refer to?

    https://limagito.com/file-mover-support/

    We also can give a demo (remote) of our file mover where we show you the basic setup (+/- 1 hour).

    6) We downloaded the evaluation copy and we could not test it more by creating multiple rules. Can you provide us temporary license for limited period so that we can try creating more rules and test it?

    No trial license available due to bad experiences in the past. You can start with a Single License and upgrade later to another type of License (only the difference needs to be paid).

    7) Do you have your prime customer list who implemented the Limagito application? and the total cutomers who implemented that?

    We will never share any information about our customers.

    8) What known problems Limagito application has?

    Like every software, also we write bugs. The history of the different version are available here: https://limagito.com/file-mover-downloads/

    If you need more details, please let us know.

    Regards,

    Limagito Team

    By Limagito Q&A
1 2 3 4 8