[a] Get file name from full path and name?

Jerry Muelver jerry at hytext.com
Wed Feb 8 18:00:59 EST 2006


From: "Garrett Hylltun" 
> Does anyone know how to extract a file name and extension from a full  
> path, such as from "answer file" ?

Here's what I use in WikiRev:

put it into curFileName
set the itemDelimiter to "/"
put the last item of curFileName into shortCurFileName
put item 1 to -2 of curFileName into curFilePath

---- Jerry Muelver



More information about the use-livecode mailing list