• 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

  • 18 Dec

    Sending emails using GMail SMTP with OAuth2 authentication

    Q: Sending emails using GMail SMTP with OAuth2 authentication. I am trying to set up an outgoing email notification that will happen when a file moves to it’s destination.

    8th of May 2022, we are working on an update because of: OAuth out-of-band (oob) flow will be deprecated

    Instead of the Google URI urn:ietf:wg:oauth:2.0:oob you’ll have to use a loopback (IP) address as Redirect URI like http://127.0.0.1 or http://localhost

    In this update (version v2022.5.8.0) a redirect port will be added which is only needed during the OAuth2 verification setup.

    Please check: Update Info

     

    A: Yes this is possible.

    First check if you enabled the GMail API in your account: https://support.google.com/googleapi/answer/6158841?hl=en

    Secondly we’ll need credentials ‘Client ID and Client Secret’  for the OAuth2 authentication: https://support.google.com/googleapi/answer/6158857?hl=en&ref_topic=7013279

    We added some screenshots to help you with the setup.

    Limagito File Mover SMTP Setup

    Don’t forget the Security Options:

    Limagito File Mover SMTP Setup

    OAuth2 Setup:

    Limagito File Mover SMTP OAuth2 authentication

    Please add the following information:
    – Authorization Endpoint URL: https://accounts.google.com/o/oauth2/v2/auth
    – Token Endpoint URL: https://www.googleapis.com/oauth2/v4/token
    – Client ID
    – Client Secret
    – Scope: https://mail.google.com/
    – Redirect URI: urn:ietf:wg:oauth:2.0:oob
    Click GET and your browser will open. Follow steps and copy / paste the code from your browser in the ‘Auth Code’ field.
    This will automatically fill in Refresh Token and Access Token. Do not forget to <Save> afterwards.

    Limagito File Mover SMTP OAuth2 authentication

    RunTime Log Result when testing:

    Limagito File Mover RunTime log result

    #FileTransfer

    If you need any info about this ‘GMail SMTP’ question, please let us know.

    Best regards,

    Limagito Team

  • 18 Dec

    Sharing destination file names between destinations

    Q: Sharing destination file names between destinations. When a rule has two destinations, and the first destination renames the file, is there a way to get that destination file name as a replacement parameter in the next destination? Specifically, I have a rule that uses a chain of 70+ regex rules to rename the file to a Win destination (ID1), and I want to pass the destination file name to an HTTP WebForm in the next destination (ID2). I’d rather do the rename once and reference the results in later destinations, than have to build all those rename rules again.

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

    Renaming, Added Renamed Var %RFN, %RFP, .. (v2021.12.18.0) [+]

    %RFN = Renamed File Name
    %RFW = Renamed file name Without extension
    %RFD = Renamed File Dir
    %RFP = Renamed File Path

    It should be used with multiple Destinations.

    We added some screenshots to get you started. In our example we added two WIN Destinations.

    Limagito File Mover Multiple Destinations

    The file renaming of the First Destination in our example:

    Limagito File Mover File renaming

    A simple renaming example where we add ‘Prefix-‘ to the filename:

    Limagito File Mover RegEx renaming

    So after the first Destination the %RFN var will containe the renaming result of the First Destination. This %RFN var can now be used as replacement paramater in the remaining Destinations.

    As a test we added the following renaming setup in the Second Destination. We replace the original filename with the content of %RFN var. You can also use the %RFN var as replacement parameter in other options the remaining Destinations.

    Limagito File Mover RegEx Renaming

    RunTime Log Result:

    Limagito File Mover RunTime log result

    #FileTransfer

    If you need any info about this ‘file names between destinations’ question, please let us know.

    Best regards,

    Limagito Team

1 2 3 4 17