2 Replies Latest reply on May 25, 2013 6:48 PM by myDavey

    Retrieve path from File Name

    myDavey Level 1


      I have a string that contains a full FileName; i.e., The path and the file name.

      How can I get just the path out of that string?


      I tried "File(FileName.path)" but it returned something like "0000 temp"

      Seemingly, that only works on a file object, and not on a string.

      I wanted to do something through find/replace within the string... but I dont know about it.

      In other languages I would do a reverse search on a forward slash - which would find the last slash in the string

      and I would erase everything after that.



      If anyone can help me with this, I will greatly appreciate it!