![]() |
购物专题 | 基金专题 | 性专题 | 饮食专题 | 教育专题 | 生活大参考 | 园林资讯 | 园艺库 | 健康专题 | |
| 论文专题 | 家庭养花 | 园林景观 | 盆景奇石 | 激情图库 | 农业资料库 | 园林古建 | 英文站 | 花卉栽培 |
我在VB中用以下代码,是成功的。
sPath = "\\192.9.200.243\d\test.txt" ’ 192.9.200.243是另一台机器的IP
Set fso = New Scripting.FileSystemObject
Set file = fso.GetFile(sPath)
但在ASP中用类似的代码就报错:文件没有找到。
sPath = "\\192.9.200.243\d\test.txt"
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set file = fso.GetFile(sPath)
请问是否FileSystemObject不支持访问其他机器上的文件呢?
---------------------------------------------------------------
感谢您使用微软产品。
您这个问题通常是由于IIS上权限及其设置所引起的,您可以参考以下文章加入解决。
ID: Q197964 PRB: Cannot Access Remote Files with the FileSystemObject [axsf]
http://support.microsoft.com/support/kb/articles/q197/9/64.asp
另外,关于ASP中调用FileSystemObject的方法,您可以参考一下以下文章:
ID: Q299871 HOW TO: Work with a Text File in an ASP Page [axsf]
http://support.microsoft.com/support/kb/articles/q299/8/71.asp
-微软全球技术中心 桌面产品技术支持
本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
浙ICP备 :07003766号 Copyright © 2001-2007 JUBAO163,All rights reserved. |