AnsweredAssumed Answered

Extract File Name from File path

Question asked by synergy46 on Sep 14, 2012
Latest reply on Sep 14, 2012 by 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

      

Outcomes