..


Sponsored Links

GetFileName

The method of the FileSystemObject object GetFileName returns the name of the 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, fname







 'I create a FileSystemObject instance dell'offetto







 Set fs = Server.CreateObject ("Scripting.FileSystemObject")









 'Individual file name







 fname = fs.getfilename ("c: \ www \ mysite \ index.html")







 Response.Write (fname)









 'I cleaned







 Set fs = Nothing



The output will be produced:
 



 index.html

 

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