当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP GetSpecialFolder 方法
The GetSpecialFolder method returns the path to some of Windows' special folders.
ASP GetSpecialFolder的作用是返回Windows下指定文件夹的路径。
FileSystemObject.GetSpecialFolder(foldername) |
Parameter参数 | Description描述 |
---|---|
foldername | Required. The folder to be returned. 必要参数。返回文件夹 0=WindowsFolder - Contains files installed by the Windows operating system 0=WindowsFolder(Windows文件夹) – 包括所有复制到Windows操作系统下的文件 1=SystemFolder - Contains libraries, fonts, and device drivers 1= SystemFolder(系统文件夹) – 包括了库、字体、驱动器 2=TemporaryFolder - Used to store temporary files 2= TemporaryFolder(临时文件夹)– 用来存储临时文件的 |
<% 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:WINNTsystem32 |