案例:ASP/ADO案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<html>
3
<body>
4
<%
5
Set fs=Server.CreateObject("Scripting.FileSystemObject")
6
7
if fs.driveexists("c:") = true then
8
      Response.Write("驱动器 c: 存在。")
9
Else
10
      Response.Write("驱动器 c: 不存在。")
11
End If
12
13
Response.write("<br />")
14
15
if fs.driveexists("g:") = true then
16
      Response.Write("驱动器 g: 存在。")
17
Else
18
      Response.Write("驱动器 g: 不存在。")
19
End If
20
21
set fs=nothing
22
%>
23
24
</body>
25
</html>
26