1![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<%![](https://www.cnblogs.com/Images/dot.gif)
2
dim objfolder
3
dim objfso
4
dim j
5![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
6
set fso=server.CreateObject
7![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
8
("scripting.filesystemobject")
9
set objfolder=fso.GetFolder("c:/")
10
if objfolder.size>0 then
11
j=0
12
for each objfile in objfolder.files
13
j=j+1
14
next
15
if j>0 then Response.Write("有"&(j)&"个")
'response.write""&(j)&""
16
else
17
Response.Write("<b>没有</b>")
18
end if
19![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
20
%>
21![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![](https://www.cnblogs.com/Images/dot.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
8
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
9
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
10
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
11
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
12
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
13
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
14
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
15
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
'response.write""&(j)&""
16
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
17
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
18
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
19
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
20
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
21
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)