..


Sponsored Links

GetParentFolderName

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

 

In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
ASP and Access (Ebook) ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €.
Sponsored Links