最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp判断文件FileExists,文件夹FolderExists,盘符driveexists
时间:2008-11-28 编辑:简简单单 来源:一聚教程网
asp判断文件FileExists,文件夹FolderExists,盘符driveexists是否存在
,盘符driveexists
<%
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
%>
asp 文件夹FolderExists
<%
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
%>
asp判断文件FileExists
<%
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
%>
-
下一个: asp cookie 实例教程
相关文章
- asp fso文件操作介绍 05-19
- asp 建立文件夹(递归) 10-08
- asp filesystemobject 文件系统例子 09-05
- 如何使用ASP文件对象 03-04
- asp 文件采集代码 12-04
- asp 创建文件与文件夹 07-11