Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
All Methods
FileSystemObject Object
METHOD: FileSystemObject.GetSpecialFolder
Implemented in version 2.0
object.
GetSpecialFolder
(foldername)
This method is used to get the path for one of Windows' special folders. These folders are:
0 - WindowsFolder, containing the files installed by the operating system.
1 - SystemFolder, containing fonts, libraries and device drivers required by the operating system.
2 - TemporaryFolder, used to store temporary (.TMP) files.
Code:
<%
dim filesys, f
Set filesys = CreateObject("Scripting.FileSystemObject")
Set f = filesys.GetSpecialFolder(1)
Response.Write ("The path to your System folder is '" & f & "'." )
%>
Output:
"The path to your System folder is 'C:\WINNT\system32'."
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information