..


Sponsored Links

GetSpecialFolder

The method of the FileSystemObject object GetSpecialFolder returns the path of some Windows folders. The method in question allows a single parameter that can be valued as:

  • (0) WindowsFolder - folder where you installed the system files
  • (1) SystemFolder - directory of libraries, fonts and drives
  • (2) temporaryFolder - temporary files folder
Here's an example:





 Dim fs, sfname







 'I create a FileSystemObject instance dell'offetto







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









 'Individual file name







 sfname fs.GetSpecialFolder = (1)







 response.write (sfname)









 'I cleaned







 Set fs = Nothing



The output will be produced:
 



 C: \ WINNT \ system32

 

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