The ASP GetSpecialFolder Method is used to return a reference to a specified special Folder.
Syntax:
FileSystemObject.GetSpecialFolder(foldername)
Parameter Values
FolderName: Required attribute. It specifies the name of the special folder to be returned. It contains a numeric value between 0 and 2 which represents three different types of folders as shown below.
- 0=WindowsFolder- Contains files installed by the Windows operating system
- 1=SystemFolder- Contains libraries, fonts, and device drivers.
- 2=TemporaryFolder- Used to store temporary files.
Example: Below code demonstrates the ASP GetSpecialFolder Method.
ASP
<% dim fs,p set fs=Server.CreateObject( "Scripting.FileSystemObject" )
set p=fs.GetSpecialFolder(1) Response.Write(p) set p=nothing set fs=nothing %> |
Output:
C:\WINNT\system32