1 Reply Latest reply on Sep 14, 2012 12:33 AM by synergy46

    Extract File Name from File path

    synergy46

      Title

      Extract File Name from File path

      Post


           I have a script that works like this:

           The user is prompted to select a file from the drive directory

           (ie, $FilePath=/Users/Docs/FMDOCS/LongFileName.fmp12)

           Of course the path may have more or fewer 'segments'(ie, folders.  If I know how long the path is and if I know

           where the last '/' is, I should be able to pull out the file name; right?). 

           Question: "What is the best way to isolate the filename from the path?"

           Thanks