File Mover Blog

  • 19 Aug

    Change time date stamp to the time and date that files are moved

    Q: Is it possible, while moving a file, to also change the time date stamp to the time and date that the files are moved? I’m trying to set up a rule to remove certain files from a folder and just want to change the time and date of the file to the time that the file was moved by this rule.

    A: Yes this is possible. Please open your Destination setup and select ‘File & Directory’ Tab.

    Please enable our ‘Reset File DateTime to Current DateTime’ option.

    Limagito File Mover Timestamp

    Feedback user: “Works great. Thank you”

    #FileTransfer

    If you need any info about this ‘Change time date stamp’ request, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team WIN , ,
  • 15 Aug

    Q&A 45: Using the Windows Remote Tool over the network

    Q: How can we use the Windows Remote Tool over the network. Can you explain me which port will need to be setup on the Client and the Server side? I didn’t find an answer on your blog side.

    A: This is possible using our IMC communication option. By default this option is disabled so we need to enable it first.

    IMC: Inter Machine Communication. Communication between different systems over the network.

    The system where the File Mover engine is running will act as a Server and is known as the Server system. On a second system, what we call a Client, you’ll have to run our File Mover installer too. You’ll only use the Windows Remote Tool exe file on this Client system. The Client system will connect to the Server system where the File Mover engine is running. You can use multiple Clients at the same time.

    Lets’ start:

    1. open our Limagito Config Tool (LimagitoXC.exe) on the system where the File Mover engine is running (= Server system).
    Switch to the ‘IMC’ Tab and ‘Enable IMC server’. Default IP is 0.0.0.0 so it will use any IP which is assigned to the Host. Default Port is 10612.
    Click <Save>. It will check if the Service or Application engine is running, you need to stop this first otherwise the settings will not be saved.
    When saved, restart the File Mover engine (Service OR Application) again.
    Limagito File Mover IMC Setup
    2. On the Client system start Limagito Remote (LimagitoXR.exe) and select the IP address of the Server system where the  file mover engine is running.
    Hit <Connect>.

    Limagito File Mover IMC Login

    #FileTransfer

    If you need any info about this ‘Windows Remote Tool over the network’ setup, please let us know.

    Best regards,

    Limagito Team

    By Limagito-Team Remote Tool ,
  • 31 Jul

    HL7 (text) File Modification with Limagito File Mover

    HL7 (text) File Modification

    Q: Good morning, thank you again for taking my call! Please find the before and after test files attached.

    1. You’ll see that the FT1 segment, specifically the FT1.25 section, was moved to FT1.7 section. (Each section is delimited by a pipe “|”.)
    2. We also added “CG” (without quotes) to the FT1.6 section. I’ve attached an image to visualize as well.

    I’m urgently trying to get this solution in place! Thank you for your help!!!!

    A: Summary of what we need to do:

    1. Load the HL7 (text) File.
    2. Iterate through the lines in the HL7 File.
    3. Search for a line that starts with ‘FT1|’.
    4. Make the requested adjustments.
    5. Save the HL7 file different from the Source.

    We created a Pascal Script to achieve this (v2021.7.31.0 or higher is needed for this script). Let’s start.

    1) Please add a Source and a File Filter for the .HL7 files you want to adjust
    2) Add the following Pascal Script as Destination, don’t forget to adjust the ctOutputPath const ( must end with a \ ).

    Limagito File Mover Pascal Script as Destination

    Var
      iList: Integer;
      tmpEntry: String;
      tmpError: String;
      tmpField: String;
      tmpFile : String;
      tmpList: TStringList;
      tmpEntryList: TStringList;
    Const
      ctOutputPath = 'C:\Test\IN_HL7\Out\';
    Begin
      psExitCode:= 0;
      // ... add your code here
      tmpFile := psFilePath + psFileName;
      tmpList := TStringList.Create;
      Try
        Try
          tmpList.LoadFromFile(tmpFile);
          // Iterate
          For iList := 0 to (tmpList.Count-1) Do
          Begin
            tmpEntry := tmpList.Strings[iList];
            If Pos('FT1|', tmpEntry) <> 0 Then
            Begin
              tmpEntryList := psDelimitedTextAsList('|', tmpEntry);
              If Assigned(tmpEntryList) Then
              Begin
                tmpEntryList.Delimiter := '|';
                tmpEntryList.StrictDelimiter := True;
                tmpEntryList.Quotechar := #0;
                // 0 indexed
                If tmpEntryList.Count >= 25 Then
                Begin
                  tmpEntryList.Strings[6] := 'CG';
                  tmpEntryList.Strings[7] := tmpEntryList.Strings[25];
                  tmpEntryList.Strings[25] := ''
                  tmpList.Strings[iList] := tmpEntryList.DelimitedText + '|';
                  // Save To File
                  tmpError := psSaveListToFile(tmpList, ctOutputPath + psFileName, False);
                  if tmpError = '' Then
                  begin
                    psExitCode := 1;
                    psLogWrite(1, '', 'Saved adjusted file to: ' + ctOutputPath + psFileName);
                  End
                  Else
                    psLogWrite(1, '', tmpError);
                End Else
                Begin
                  psLogWrite(1, '', 'Field Count error of: ' + tmpEntryList.DelimitedText);
                End;
                // Free
                tmpEntryList.Free;
                // Break
                Break;
              End;
            End;
          End;
        Except
          psLogWrite(1, '', 'Error loading file: ' + tmpFile);
        End;
      Finally
        tmpList.Free;
      End;
    End.
    

    #FileTransfer

    If you need any info about this ‘HL7 (text) File Modification’ request, please let us know.

    Best regards,

    Limagito Team

1 57 58 59 60 61 62 63 136
SEARCH