Q&A

  • 28 Apr

    Q&A 2: Is it possible to rename a file that has a date in the filename to also include the day of the week?

    Q: Is it possible in LimagitoX File Mover to rename a file that has a date in the filename to also include the day of the week?
    Here is an example of what I would like to rename.
    Original Filename: XYZ001D_04_21_20_ABCD.pdf
    (04_21_20 = April 21, 2020)
    Rename To:  Tues_XYZ001D_04_21_20_ABCD.pdf

    A: Yes this is possible using Pascal Script. Some screenshots to get you started.
    Add The Following ‘On Destination’ Pascal Script:

    // Original Filename: XYZ001D_04_21_20_ABCD.pdf
    // (04_21_20 = April 21, 2020)
    // Rename To:  Tues_XYZ001D_04_21_20_ABCD.pdf
    Var
      tmpDate: TDateTime;
      tmpDateStr: String;
      tmpPos: Integer;
      tmpLen: Integer;
      tmpDay: Integer;
    Const
      ctDateLen = 8;  
    Begin
      psExitCode := 0;
      // ... add your code here
      tmpPos := pos('_', psFileName);
      tmpLen := Length(psFileName);
      // Check
      If (tmpPos = 0) And (tmpLen = tmpPos + ctDateLen) Then
      Begin
        Try
          tmpDateStr := Copy(psFileName, tmpPos+1, ctDateLen);
          psLogWrite(1, '', 'Date stripped as String: ' + tmpDateStr);
          tmpDate := psStrToDate(tmpDateStr, 'mm_dd_yy', '_');      
          tmpDay := DayOfTheWeek(tmpDate);
          psLogWrite(1, '', 'Day Of The Week: ' + IntToStr(tmpDay));
          Case tmpDay Of
          1: psVSA := 'Mond_'; // Monday
          2: psVSA := 'Tues_'; // Tuesday
          3: psVSA := 'Wedn_'; // Wednesday
          4: psVSA := 'Thur_'; // Thursday
          5: psVSA := 'Frid_'; // Friday
          6: psVSA := 'Satu_'; // Saturday
          7: psVSA := 'Sund_'; // Sunday
          End;
          // Set ExitCode
          psExitCode := 1;
        Except
          psLogWrite(1, '', 'Exception Error when searching for Date in filename: ' + psFilePath + psFileName);     
        End;
      End
      Else
        psLogWrite(1, '', 'Not a valid filename: ' + psFilePath + psFileName);  
    End.

    In your Destination Setup select the ‘Rename’ Tab. Enable ‘Rename Files during Copy/Move and click the button next to this option.

    File Rename Setup:
    RegEx:                (.*)
    Replacement:    %VSA\1

    The goal of this renaming is to add the %VSA var in front of the filename. The %VSA var was previously set in the Pascal Script.
    The \1 corresponds with the RegEx (.*) which is in this case the complete filename.

    If you need help, please let us know. Don’t hesitate to ask.

    Regards,
    Limagito Team

    By Limagito-Team Q&A ,
  • 28 Apr

    Q&A 1: explain the difference between orange, blue and grey button

    Q: I have many rules in the mover and have a pretty good handle on what it is they are doing.  However, there are rules that I have copied so that I can make changes without affecting the originals.  The rules are now displayed with grey buttons on them.  Please explain the difference between an orange, a blue and a grey button for each rule.  Beyond that I would like to know the significance of the double arrow vs. single arrow on the same buttons.

    A: https://limagito.com/icon-legend/

    FYI:  On our website blog I’ve searched for icon
    If you need any help , please let us know.
    Regards,
    Limagito Team
    By Limagito-Team Q&A , ,
  • 04 Jan

    How-to update your current version of Limagito File Mover

    Dear users,

    Important: Install on Windows 7 or higher. Always keep a copy of the previous and new installer. Be sure your current License allows you to update to this new version, the license filename mentions the last version you are able to update to. You can also check this using the LimagitoXC Config tool. If you have a newer license file available, please import this license first using the LimagitoXC (= File Mover Config Tool) before before doing the update.

    A how-to update to the latest version of Limagito File Mover (v2017 and up) when the installer type stays the same (32bit > 32bit or 64bit > 64bit):

    1. Do NOT uninstall the previous version otherwise you will lose the ‘Logon As User’ of the LimagitoX Services (*).

    2. Stop all ‘in use’ LimagitoX Services
    >> LimagitoXS, File Mover Engine as Service (If you are using our File Mover as Service)
    >> LimagitoXW, File Mover Web Remote Tool as Service

    3. Stop all ‘in use’ LimagitoX Applications
    >> LimagitoXR, File Mover Remote Tool
    >> LimagitoXC, File Mover Config Tool
    >> LimagitoXA, File Mover Engine as Application (If you are using our File Mover as Application)

    4. Run the latest installer

    5. Start the Services you were using again

    6. Start the Applications you were using again

     

    A how-to update to the latest version of Limagito File Mover (v2017 and up) when switching between installer types (32bit > 64bit or 64bit > 32bit):

    1. Stop all ‘in use’ LimagitoX Services
    >> LimagitoXS, File Mover Engine as Service (If you are using our File Mover as Service)
    >> LimagitoXW, File Mover Web Remote Tool as Service

    2. Stop all ‘in use’ LimagitoX Applications
    >> LimagitoXR, File Mover Remote Tool
    >> LimagitoXC, File Mover Config Tool
    >> LimagitoXA, File Mover Engine as Application (If you are using our File Mover as Application)

    3. Uninstall the previous version. Be sure to write down the ‘Logon As User’ of the LimagitoX Service(s) as you will need it(them) later.

    4. Run the latest installer

    5. Adjust the ‘Logon As User’ of the LimagitoX Service(s) as written down in step 3.

    6. Start the Services you were using again

    7. Start the Applications you were using again

     

    Please let us know if the info above isn’t clear or sufficient.

    Regards,
    Limagito Team

    By Limagito-Team Q&A Update ,
1 12 13 14 15 16 17
SEARCH