1 Reply Latest reply on Jan 30, 2017 6:38 AM by alqemist

    Use Send Event to Rename a file

    MaximeM

      Title

      Use Send Event to Rename a file

      Post

      Hi,

      I'm under Windows XP with FM Pro 11 Adv and trying to rename a text file in mydocuments folder. For Example rename file: "myfile.txt" to "thesefiles.txt"  I would really appreciate if someone can help me. Thank you

        • 1. Re: Use Send Event to Rename a file
          alqemist

          Here is a command that worked for me on Windows - be sure to remove the "file:" prefix from the path of the file if you are using the path acquired from a FM capture process, like selecting the file using a script or a store file path in FM.

           

          "cmd /c COPY  \"" & Substitute($original;"file:";"")  & "\"  \"" & Substitute($new;"file:";"")  & "\""