..
The method GetParentFolderName FileSystemObject object returns the name of the folder that contains a given file or folder. The only required parameter of the method in question is the path of the file or folder. Here's an example:
Dim fs, pfname
'I create a FileSystemObject instance dell'offetto
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'Individual name of the parent folder
pfname fs.GetParentFolderName = ("c: \ www \ mysite \ index.html")
response.write (pfname)
'I cleaned
Set fs = Nothing
The output will be produced:
c: \ www \ mysite
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |