由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - IIS 5.1 and FileSystem object
相关主题
Re: [转载] 急急急:如何在一台windows 2000 advanced server配置多个IP,Urgent: ASP support?
ASP string.endswith 问题Help Please for learning to build E-commerce website
请教一个 IIS setting 问题: 网页的 file extension紧急请教,初级问题。
输入domain.com和www.domain.com出来的不一样求助!
Urgent help -- How to transfer the web info to the pdf filehelp: personal web server
本板宗旨HELP: web hosting ---new guy
Re: Help: Any good book on ASP? -- urgentASP可以访问远程数据库么?
Re: Which one should I download?is IIS server4.0 free download?
相关话题的讨论汇总
话题: fldr话题: set话题: iis话题: filesystem话题: fso
进入BuildingWeb版参与讨论
1 (共1页)
c*******u
发帖数: 20
1
I'm running XP pro with SP1. the following code runs fine
on IIS 5.0, but it won't run on my machine:
<%
Dim fso, mf, fldr
fldr=Server.MapPath(".\valuable_docs\")
Set fso=Server.CreateObject("Scripting.FileSystemObject")
Set mf=fso.GetFolder(fldr)
If (fso.FolderExists(fldr)) Then
msg = fldr & " exists"
Else
msg = fldr & " doesn't exist"
End If
response.write(mf.Size)
%>
when I commented out
Set mf=fso.GetFolder(fldr)
and
response.write(mf.Size)
it will run on my machine
Anyone knows what's wrong
h*****n
发帖数: 439
2
shouldn't you do this ?
Set fso=Server.CreateObject("Scripting.FileSystemObject")
If (fso.FolderExists(fldr)) Then
msg = fldr & " exists"
Set mf=fso.GetFolder(fldr)
response.write(mf.Size)
Else
msg = fldr & " doesn't exist"
End If

【在 c*******u 的大作中提到】
: I'm running XP pro with SP1. the following code runs fine
: on IIS 5.0, but it won't run on my machine:
: <%
: Dim fso, mf, fldr
: fldr=Server.MapPath(".\valuable_docs\")
: Set fso=Server.CreateObject("Scripting.FileSystemObject")
: Set mf=fso.GetFolder(fldr)
: If (fso.FolderExists(fldr)) Then
: msg = fldr & " exists"
: Else

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
is IIS server4.0 free download?Urgent help -- How to transfer the web info to the pdf file
IIS Problem本板宗旨
[转载] How to start IIS 5.0 in windows 2000 professional version.Re: Help: Any good book on ASP? -- urgent
Apache and PHP4.0Re: Which one should I download?
Re: [转载] 急急急:如何在一台windows 2000 advanced server配置多个IP,Urgent: ASP support?
ASP string.endswith 问题Help Please for learning to build E-commerce website
请教一个 IIS setting 问题: 网页的 file extension紧急请教,初级问题。
输入domain.com和www.domain.com出来的不一样求助!
相关话题的讨论汇总
话题: fldr话题: set话题: iis话题: filesystem话题: fso