command

  • 23 Oct

    How to use the new command line tools method

    How to use the new command line tools method

    In version v2023.10.23.0 we added a second method to execute Command Line Tools.

    This second method is available with:

    • CMD as Source
    • CMD as Destination
    • Command option (Moving Rule Menu)

    This new method is also the default in our newly added Rule Events Command option.

    The new Command method has two new options:

    • Max Time After Beginning (seconds): If you want the process to stop by itself after X seconds of activity, use the property ‘Max Time After Beginning’.
    • Max Time After Last Output (seconds): If you want the process to stop after X seconds without an output, use the property ‘Max Time After Last Output’.

    Both options will prevent our File Mover Rule from hanging due to incorrect behavior of the Command Line Tool.

    new command line tools

    RunTime Log Result example:

    limagito file mover runtime log

    #cmd #filetransfer #filemanagement

    If you need any help with this ‘new command line tools’ option, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Command ,
  • 27 Dec

    Execute a command line tool after processing multiple files successfully

    Q: Howto execute a command line tool after processing multiple files successfully. I have a rule that moves 1 or more files and starts a uses the command option After copy/move/delete success to run an executable. I could get 1 file or I could get more every day. If I receive 1 file everything is good but if I receive more than 1 file then the rule is trying to process all the files individually where I need it to run the exe after all files are moved. Is there a setting to move all the files then run the exe, I think I’ve had this issue before but I just can’t remember how I fixed it.

    A: We added a new option in version v2021.12.26.0 to achieve this.

    Command, On Rule End Execute Condition option (v2021.12.26.0) [+]

    In your case we should not use ‘After copy/move/delete success’ because this is triggered for each file. Instead, select and enable the ‘On Rule End’ Command instead AND with ‘On Rule End’ selected do enable the ‘All files successful’ Execute Condition option in the Advanced Tab.

    Limagito File Mover Execute Command Condition

    #FileTransfer

    If you need any info about this ‘after processing multiple files’ question, 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 ,
1 2
SEARCH