Announcement

Collapse
No announcement yet.

Move-to File Name syntax

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Move-to File Name syntax

    I am using a File Reader and would like to rename the file with a timestamp to prevent it from being processed again (it won't meet the Filename Filter Pattern anymore). Windows XP OS.

    What is the syntax used in the "Move-to File Name:" parameter?

    I've experimented with several things but it just keeps reading the same file over and over again.

    The last thing I tried was: "${ORIGINALNAME}{date.get('yyyyMMdd')}ERROR.OL D" but It does not work.

    Thanks so much!


  • #2
    ${ORIGINALNAME}${date.get('yyyyMMdd')}ERROR.OLD
    should work
    JJ Mouris
    FFE Luxembourg
    IT-Department

    Comment


    • #3
      Thanks for the response!

      However this also had no effect. What about Move-to Directory? I heard you have to put something there, like ".". But when I put "." there it puts it into the "C:\Program Files\Mirth Connect" folder with the changed name. I'd rather not have the files go there. Maybe "." is linux specific? not windows?

      Does the "error" directory also need something specified for this all to work?

      Thanks again!

      Comment


      • #4
        You can use variable names iny any of move-to directory, Move-to filename and error directory name.

        Use full pathes (Drives, mapped shares or UNC-pathes work fine); '.' refers to current directory, that's why you find your file in your installation directory.

        Missing directories are created, if privileges are OK.

        Check privileges of your Mirth service user, or use a user for Mirth service with sufficient privileges

        We use all this to create daily archive folders of our messages, never had problems to get it working.
        (Did you notice the $ missing in your filename?)
        JJ Mouris
        FFE Luxembourg
        IT-Department

        Comment


        • #5
          Thanks for the help.

          So if "." gives the current running/install directory... how do you specify the directory where the source file came from? Do you have to hard code it?

          Comment


          • #6
            Why not using the Mirth vars like:
            ${ORIGINALNAME}${SYSTIME}
            ${ORIGINALNAME}${DATE}
            X Connections
            https://documentor.email
            https://www.x-connections.com

            Comment


            • #7
              Hello,

              As far as I could test it, it is not possible to "move" the file to the same directory. I got stuck on this one, too.

              If you need, you retype your input directory (or you use the same variables)
              JJ Mouris
              FFE Luxembourg
              IT-Department

              Comment


              • #8
                Hi mourisj, Yeah I guess you're right. Once I put in a hard coded directory it seems to rename it as desired.

                Let me know if anyone figures out how to rename the file and keep it in the same path.

                Thanks for the help everyone.

                Comment

                Working...
                X