关于asp内置组件FSO的问题~~~

来源:百度知道 编辑:UC知道 时间:2024/05/17 00:25:51
<%
Set fs=server.createobject("scripting.FileSystemobject")
Set drives=fs.Driver
Response.write("驱动器数目:"&drives.count & "<br>")

%>
Microsoft VBScript 运行时错误 错误 '800a01b6'

对象不支持此属性或方法: 'Driver'

/index.asp,行 12

怎么才能正确的提取计算机电脑的信息?格式错了吗?该怎么改
drives是变量啊,老兄
drives=fs.Driver
Response.write("驱动器数目:"&drives.count & "<br>")

http://www.microsoft.com/china/technet/community/scriptcenter/dfs/scrdfs13.mspx

你看看这里。似乎是你拼错了。应该是drives。
我给你的那个网址你似乎没有去看。
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colDrives = objFSO.Drives

欢迎访问我的论坛:)
http://www.chinesebloger.com
期待您的支持:)