<% Set fs=Server.CreateObject("Scripting.FileSystemObject") if fs.driveexists("c:") = true then Response.Write("C盘:存在") Else Response.Write("C盘:不存在") End If Response.write("") if fs.driveexists("g:") = true then Response.Write("G盘:存在") Else Response.Write("G盘:不存在") End If set fs=nothing %>
效果会显示在右边 Create by 软晨网(RuanChen.com)