• 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

  • 31 Jul

    Need support about moving files to sub folder ARCHIVE

    Q: Need support about moving files to sub folder ARCHIVE

    I would like to realize a move action with Limagito:

    > Source folder : D:\MECA + Subdir
    –Subdir contains \Customer_ONE, \Customer_TWO, etc.

    info : files to move are stored in each subfolder
    example:
    D:\MECA\Customer_ONE\po_20210720.csv
    D:\MECA\Customer_TWO\po_20210720.csv
    etc.

    > Function : Move

    > Destination folder :
    D:\MECA\Customer_ONE\Archive
    D:\MECA\Customer_TWO\Archive
    etc.

    You can see that Limagito will scan D:\MECA and its subfolders, and have to move files to archive subfolder.
    So objective is too collect the “Customer_ONE”, “Customer_TWO” value when Limagito scans…

    How can I set setting or make Pascal Script to be able to do this rule, and avoid create one rule per folder ?
    Let me know if my request is clear enough. Thanks in advance for your help.

    A: Could you please try the following. Some screenshots to get you started.

    • Source D:\MECA in our example is C:\Test\In_Meca\

    Limagito File Mover Mover to Archive

    • Windows Folder as Source:

    Limagito File Mover Mover to Archive

    • Directory Filter Setup:

    Limagito File Mover Mover to Archive

    • Directory Name Exclude Filter Setup (important)

    Limagito File Mover Mover to Archive

    • Destination Setup, Selected Directory is the same as the Source:

    Limagito File Mover Mover to Archive

    • Destination File & Directory ‘Create Subdir, option’ Setup

    Limagito File Mover Mover to Archive

    • RunTime Log:

    Limagito File Mover Mover to Archive

    If you need any help with this ‘moving files to sub folder ARCHIVE’ request, please let us know.

    #FileTransfer

    Best Regards,

    Limagito Team

    By Limagito-Team WIN ,
1 4 5 6 7 8 9 10 17
SEARCH