当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP GetSpecialFolder 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP GetSpecialFolder 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 305 ::
收藏到网摘: n/a

The GetSpecialFolder method returns the path to some of Windows' special folders.
ASP GetSpecialFolder的作用是返回Windows下指定文件夹的路径。

Syntax
语法

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(临时文件夹)– 用来存储临时文件的

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:WINNTsystem32

评论 (0) All

登陆 | 还没注册?