I know how to get the dir to the folder, but I’d like to get the name.
Thank you for your help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).
assuming that you are on Windows, and your fullpath looks something like c:\inetpub\site\dir, you can use this:
Remember that all list functions can take a delimiter (optionally) so you can treat any string delimited like this as a list, not just the default comma-delimited lists.