- 博客(1)
- 资源 (2)
- 收藏
- 关注
用ASP获取驱动器名称
一个小小程序<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
set fso=server.CreateObject("sripting.FileSystemObject")
'response.Write fso.getdrivename("C:")
set coldrivers=fso.drivers
for each drive in coldrivers
response.Write drive.driveletter
next
%>
</body>
</html>
2009-12-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人