command

  • 11 May

    How-To use a Command Line tool as Source in LimagitoX File Mover

    In this how-to we’ll explain you how-to use a command line tool, aka CMD, as source in LimagitoX File Mover.

    First you need to add a CMD as Source:

    LimagitoX-Command-Line-Tool-as-Source

    The following screenshot shows the CMD setup. In this example we’ll trigger a Ping from the Command Line. The result of the ping is stored in a text file. In this example we’re using a couple of parameters:

    %DFD = Destination File Directory

    %TCD:mmddyyyy-hhnnss: = Time Current Date format YearMonthDay-HourmiNuteSeconds

    cmd /c ping 127.0.0.1 > %DFD\PingCheck.%TCD:mmddyyyy-hhnnss:.txt

    The Destination Directory of the Command result is set to: C:\Test\In\CMD\In\

    Limagito-Command-Line-Tools-As-Source-Setup

    We selected ‘Move’ as function, so files created in the previous CMD Destination Directory will be Moved to its final Destination.

    We added a WIN local folder as Final Destination.

    Result in RuntTime Log:

    Content of ping command result text file:

    If you need help with the Command Line Tool as Source, please let us know.

    Regards,

    Limagito Team

    By Limagito How-to ,
  • 18 Apr

    How-To add Command Line as Destination in LimagitoX File Mover

    In version v2020.4.18.0 we’ve added an ‘Execute Command as Destination’ option.

    Open Destinations and <Add CMD>.

    LimagitoX-Add-Command

    For Command Lines tools please always use the ‘Command Line’ field. Leave the ‘Application Name’ field empty.

    This field will (almost) always start with:  CMD /C

    In this basic example we have added Copy and some parameters

    • %SFP%SFN = Source File Path and Source File Name
    • %DFP%DFN = Destination File Path and Destination File Name

    The %DFP will be filled with the ‘Destination Directory’ from the Command Setup (it will contain a \ at the end).

    If we don’t use the file renaming option then %DFN will be the same as %SFN.

    When we trigger the Moving Rule, we get the following result in the RunTime Log. Did you notice the translation of the parameters.

    If you need any help, please let us know.

    Regards,

    Limagito Team

    By Limagito How-to ,
  • 24 Aug

    Command option, redirect output to log (v10.8.24.0)

    User request:

    I would like the console output from the command called in Limagito to be recorded in the RunTime and History Logs (database also).  I am calling a program that writes to the console text as shown in the following screen grab.  This output would be very helpful if logged with the Limagito move.

    • Command option, redirect output to log (v10.8.24.0)

    With this option you can redirect your command console output to the LimagitoX log. There will be no output available in the command console window. Please use version v10.8.24.0 or higher.

    Best Regards,

    Limagito Team