欢迎光临
我们一直在努力

对文件的操作1-ASP教程,ASP基础

建站超值云服务器,限时71元/月

检查指定的磁盘 文件夹 或是文件是否存在

<html>

<body>

<%

dim objfso

set objfso=server.createobject("scripting.filesystemobject")

if objfso.driveexists("c:") then

response.write"磁盘c是存在的"

else

response.write"磁盘c是不存在的"

end if

if objfso.folderexists(server.mappath("inetpub")) then

response.write"inetpub文件夹是存在的"

else

response.write"inetpub文件夹是不存在的"

end if

if objfso.fileexists(server.mappath("ww.asp")) then

response.erite"ww.asp文件是存在的"

else

response.write"ww.asp文件是不存的"

end if

set objfso=nothing

%>

</body>

</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 对文件的操作1-ASP教程,ASP基础
分享到: 更多 (0)

相关推荐

  • 暂无文章