Command

  • 10 Mar

    Q&A 41: How to trigger powershell scripts using Limagito File Mover

    Q: We would like to know how to trigger powershell scripts using Limagito.

    A: Please have a look at the example we received from one of our users

    Command Line:

    cmd /c powershell.exe -NoLogo -NonInteractive -file “D:\Scripts\Extract_Logs.ps1”

    Important:

    When using Powershell as Command Line tool, please disable ‘Redirect Command Output to Log’ op (Advanced tab).

    Limagito File Mover Command output to log
    If you need any help with this ‘trigger powershell scripts’ request, please let us know.

    Best Regards,

    Limagito Team

     

    By Limagito-Team 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-Team Command ,
  • 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-Team Command ,
1 2 3 4
SEARCH