Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP GetSpecialFolder Method

ASP GetSpecialFolder Method


FileSystemObject Reference Complete FileSystemObject object reference manual


The GetSpecialFolder method returns the path of a special Windows folder.

Syntax

FileSystemObject.GetSpecialFolder(foldername)

Parameters Description
foldername Required. The folder to return.
 0=WindowsFolder - 包含由 Windows 操作系统安装的文件。       

 1=SystemFolder - 包含库、字体和设备驱动。       

 2=TemporaryFolder - 用于存储临时文件。 |


Example

<%

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


FileSystemObject Reference Complete FileSystemObject object reference manual