How to get the name of the current folder, not the dir to the folder
问题 I know how to get the dir to the folder, but I'd like to get the name. Thank you for your help. 回答1: A slightly more efficient method for doing what @Matt Shooks suggests would be to use list functions directly, rather than to convert to an array (since you only need to reference it once). fullpath = getDirectoryFromPath(getCurrentTemplatePath()) assuming that you are on Windows, and your fullpath looks something like c:\inetpub\site\dir, you can use this: thisFolder = listlast(fullpath, "\/"