最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp判断文件FileExists,文件夹FolderExists,盘符driveexists
时间:2022-06-30 11:32:51 编辑:袖梨 来源:一聚教程网
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
%>
相关文章
- 《大侠立志传》韩红玉结缘有什么 06-16
- Metaplanet最新购入1,112枚比特币后总持仓突破1万枚大关 06-16
- 《艾塔纪元》奥莉维亚凯撒怎么样 06-16
- 安全可靠2025全球交易所虚拟币交易前十-最方便数字资产交易所币安推荐 06-16
- 《超能力冲刺》水风阵容怎么配队 06-16
- 《晶核》平民职业选择推荐细节解读 06-16