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