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

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP GetFile 方法


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

The GetFile method returns a File object for the specified path.
ASP GetFile的作用是返回指定路径的一个文件。

Syntax
语法

FileSystemObject.GetFile(path)

Parameter参数 Description描述
path Required. The path to a specific file
必要组件。规定文件的路径

Example
举例

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:testtest.htm")
Response.Write("The file was last modified on: ")
Response.Write(f.DateLastModified)
set f=nothing
set fs=nothing
%>
Output:
The file was last modified on 01/01/20 4:23:56 AM

评论 (0) All

登陆 | 还没注册?