最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp入门教程:ASP FileSystemObject 对象
时间:2022-06-30 11:43:35 编辑:袖梨 来源:一聚教程网
asp入门教程:ASP FileSystemObject 对象
使用FileSystemObject对象是用来存取档案系统的服务器上。
下面我们来举例说明吧.
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
If (fs.FileExists("c:winntcursors3dgarro.cur"))=true Then
Response.Write("File c:winntcursors3dgarro.cur exists.")
Else
Response.Write("File c:winntcursors3dgarro.cur does not exist.")
End If
set fs=nothing
%>
输出结果.
File c:winntcursors3dgarro.cur exists.
实例二.
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
If fs.FolderExists("c:temp") = true Then
Response.Write("Folder c:temp exists.")
Else
Response.Write("Folder c:temp does not exist.")
End If
set fs=nothing
%>
输出结果.
Folder c:temp exists.
实例三.
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.driveexists("c:") = true then
Response.Write("Drive c: exists.")
Else
Response.Write("Drive c: does not exist.")
End If
Response.write("
")
if fs.driveexists("g:") = true then
Response.Write("Drive g: exists.")
Else
Response.Write("Drive g: does not exist.")
End If
set fs=nothing
%>
输出结果为.
Drive c: exists.
Drive g: does not exist.
相关文章
- 光与影33号远征队符文收集攻略:如何获得符文振奋疗愈亮色 12-16
- 歪歪漫画免费在线看-高清页面入口畅享优选画质 12-16
- 百炼英雄怎么升星 英雄升星材料准备 12-16
- 163邮箱登录入口-网易163邮箱网页版快速登录 12-16
- 韩漫免费漫画入口页面精选合集-韩漫免费漫画入口热榜TOP集锦 12-16
- 百炼英雄怎么觉醒 英雄觉醒条件一览 12-16