<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[邮件技术网-邮件中继,海外退信,反垃圾网关,邮件代收,外贸邮箱,邮件群发]]></title> 
<description><![CDATA[邮件中继,海外退信,反垃圾邮件网关,邮件代收,邮件延时处理,邮件中继设置,邮件群发,EDM,邮件收发故障处理。]]></description>
<link>http://www.030904.net/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>ASP读取TXT</title>
	<link>http://www.030904.net/program/186.html</link>
	<description><![CDATA[<span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&lt;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">%<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ss(</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">20</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">)<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;fs</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">server.createobject(</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">scripting.filesystemobject</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">)&nbsp;<br />
file</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">server.mappath(</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">qq.txt</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;txt</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">fs.opentextfile(file,</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">,</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">true</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">for</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;n</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">to</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">20</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;‘读取前二十行<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;txt.atendofstream&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">exit</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">for</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">do&nbsp;not&nbsp;txt.atendofstream</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">line</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">txt.readline<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">a=instr(line,"-")</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">s=left(line,a)</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">response.write&nbsp;line&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">&lt;br&gt;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">loop</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">next</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;"><br />
%</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&gt;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">ReadLine：从文件中读取一行数据&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">Read(N)：从文件中读取N个字节的数据&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">ReadAll：读取文件中的所有数据</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">========================</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">FSO</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=============================</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;"><br />
究级FSO函数，推荐使用。&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&lt;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">%&nbsp;<br />
Class&nbsp;Cls_FSO&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Private</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Sub</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;Class_Initialize()&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;Server.CreateObject(</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">Scripting.FileSystemObject</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Sub</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Private</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Sub</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;class_terminate()&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Nothing</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Sub</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">=======文件操作========&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">取文件大小&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;GetFileSize(FileName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.Getfile(FileName)&nbsp;<br />
GetFileSize&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Size&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
GetFileSize&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件删除&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;deleteAFile(FileSpec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileSpec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
objFSO.deleteFile(FileSpec)&nbsp;<br />
deleteAFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
deleteAFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">显示文件列表&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ShowFileList(FolderSpec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;f1,&nbsp;fc,&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(FolderSpec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFolder(FolderSpec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;fc&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Files&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">For</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Each</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f1&nbsp;in&nbsp;fc&nbsp;<br />
s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f1.name&nbsp;<br />
s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">|</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Next</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFileList&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFileList&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件复制&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;CopyAFile(SourceFile,&nbsp;DestinationFile)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;MyFile&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(SourceFile)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;MyFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFile(SourceFile)&nbsp;<br />
MyFile.Copy&nbsp;(DestinationFile)&nbsp;<br />
CopyAFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
CopyAFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件移动&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;MoveAFile(SourceFile,DestinationFile)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(SourceFile)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">And</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(DestinationFileORPath)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
objFSO.MoveFile&nbsp;SourceFile,DestinationFileORPath&nbsp;<br />
MoveAFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
MoveAFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件是否存在？&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;msg&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;(objFSO.FileExists(FileName))&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ReportFileStatus&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;msg&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件创建日期&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ShowDatecreated(FileSpec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileSpec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFile(FileSpec)&nbsp;<br />
ShowDatecreated&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Datecreated&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowDatecreated&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件属性&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;GetAttributes(FileName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFile(FileName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.attributes&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">0</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">普通文件。没有设置任何属性。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">只读文件。可读写。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">隐藏文件。可读写。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">4</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">系统文件。可读写。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">16</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">文件夹或目录。只读。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">32</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">上次备份后已更改的文件。可读写。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1024</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">链接或快捷方式。只读。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2048</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">&nbsp;压缩文件。只读。</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
GetAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;strFileAttributes&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
GetAttributes&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">最后一次访问/最后一次修改时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ShowFileAccessInfo(FileName,InfoType)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//功能：显示文件创建时信息&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//形参：文件名,信息类别&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;1&nbsp;-----创建时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;2&nbsp;-----上次访问时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;3&nbsp;-----上次修改时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;4&nbsp;-----文件路径&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;5&nbsp;-----文件名称&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;6&nbsp;-----文件类型&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;7&nbsp;-----文件大小&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;8&nbsp;-----父目录&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;9&nbsp;-----根目录&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFile(FileName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;InfoType&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Datecreated&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.DateLastAccessed&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">3</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.DateLastModified&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">4</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Path&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">5</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Name&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">6</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Type&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">7</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Size&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">8</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.ParentFolder&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">9</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.RootFolder&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFileAccessInfo&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">ELse</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFileAccessInfo&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">写文本文件&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;WriteTxtFile(FileName,TextStr,WriteORAppendType)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Const</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ForReading&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">,&nbsp;ForWriting&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;,&nbsp;ForAppending&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">8</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;m&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;WriteORAppendType&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">:&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件进行写操作&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.OpenTextFile(FileName,&nbsp;ForWriting,&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">True</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">)&nbsp;<br />
f.Write&nbsp;TextStr&nbsp;<br />
f.Close&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
WriteTxtFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
WriteTxtFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">:&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">文件末尾进行写操作&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.OpenTextFile(FileName,&nbsp;ForAppending)&nbsp;<br />
f.Write&nbsp;TextStr&nbsp;<br />
f.Close&nbsp;<br />
WriteTxtFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
WriteTxtFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">读文本文件&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReadTxtFile(FileName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Const</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ForReading&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">,&nbsp;ForWriting&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;m&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFileStatus(FileName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.OpenTextFile(FileName,&nbsp;ForReading)&nbsp;<br />
m&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.ReadLine&nbsp;<br />
ReadTxtFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;m&nbsp;<br />
f.Close&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ReadTxtFile&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">建立文本文件&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">=======目录操作========&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">取目录大小&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;GetFolderSize(FolderName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(FolderName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFolder(FolderName)&nbsp;<br />
GetFolderSize&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Size&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
GetFolderSize&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">创建的文件夹&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;createFolderDemo(FolderName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(Folderspec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
createFolderDemo&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.createFolder(FolderName)&nbsp;<br />
createFolderDemo&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">目录删除&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;deleteAFolder(Folderspec)&nbsp;<br />
Response.write&nbsp;Folderspec&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(Folderspec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
objFSO.deleteFolder&nbsp;(Folderspec)&nbsp;<br />
deleteAFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
deleteAFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">显示目录列表&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ShowFolderList(FolderSpec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;f1,&nbsp;fc,&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(FolderSpec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFolder(FolderSpec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;fc&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.SubFolders&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">For</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Each</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f1&nbsp;in&nbsp;fc&nbsp;<br />
s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f1.name&nbsp;<br />
s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">|</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Next</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFolderList&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFolderList&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">目录复制&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;CopyAFolder(SourceFolder,DestinationFolder)&nbsp;<br />
objFSO.CopyFolder&nbsp;SourceFolder,DestinationFolder&nbsp;<br />
CopyAFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
CopyAFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">目录进行移动&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;MoveAFolder(SourcePath,DestinationPath)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(SourcePath)</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">And</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(DestinationPath)</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">0</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
objFSO.MoveFolder&nbsp;SourcePath,&nbsp;DestinationPath&nbsp;<br />
MoveAFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
MoveAFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">判断目录是否存在&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(fldr)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;msg&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;(objFSO.FolderExists(fldr))&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ReportFolderStatus&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;msg&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">目录创建时信息&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ShowFolderAccessInfo(FolderName,InfoType)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//功能：显示目录创建时信息&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//形参：目录名,信息类别&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;1&nbsp;-----创建时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;2&nbsp;-----上次访问时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;3&nbsp;-----上次修改时间&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;4&nbsp;-----目录路径&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;5&nbsp;-----目录名称&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;6&nbsp;-----目录类型&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;7&nbsp;-----目录大小&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;8&nbsp;-----父目录&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">//&nbsp;9&nbsp;-----根目录&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportFolderStatus(FolderName)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFolder(FolderName)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;InfoType&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Datecreated&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">2</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.DateLastAccessed&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">3</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.DateLastModified&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">4</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Path&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">5</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Name&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">6</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Type&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">7</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Size&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">8</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.ParentFolder&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Case</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">9</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.RootFolder&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">select</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFolderAccessInfo&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;s&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">ELse</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFolderAccessInfo&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">遍历目录&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;DisplayLevelDepth(pathspec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f,&nbsp;n&nbsp;,Path&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetFolder(pathspec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.IsRootFolder&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
DisplayLevelDepth&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">指定的文件夹是根文件夹。</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">RootFolder&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Do</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;Until&nbsp;f.IsRootFolder&nbsp;<br />
Path&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;Path&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.Name&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">&lt;br&gt;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;f.ParentFolder&nbsp;<br />
n&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;n&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">+</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Loop</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
DisplayLevelDepth&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">指定的文件夹是嵌套级为&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;n&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">&nbsp;的文件夹。&lt;br&gt;</span><span style="font-family:'Courier New';white-space:normal;color:#800000;line-height:1.5 !important;">"</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&amp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;Path&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">========磁盘操作========&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">驱动器是否存在？&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportDriveStatus(drv)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;msg&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.DriveExists(drv)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Else</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
msg&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ReportDriveStatus&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;msg&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">'</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;">可用的返回类型包括&nbsp;FAT、NTFS&nbsp;和&nbsp;CDFS。&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#008000;line-height:1.5 !important;"><br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Public</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ShowFileSystemType(drvspec)&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Dim</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;d&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">If</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;ReportDriveStatus(drvspec)&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Then</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">Set</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;d&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;objFSO.GetDrive(drvspec)&nbsp;<br />
ShowFileSystemType&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;d.FileSystem&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">ELse</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
ShowFileSystemType&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">=</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">-</span><span style="font-family:'Courier New';white-space:normal;color:#800080;line-height:1.5 !important;">1</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">if</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End&nbsp;Function</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;<br />
</span><span style="font-family:'Courier New';white-space:normal;color:#0000FF;line-height:1.5 !important;">End</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&nbsp;Class&nbsp;<br />
%</span><span style="font-family:'Courier New';white-space:normal;line-height:1.5 !important;">&gt;</span>]]></description>
	<pubDate>Thu, 17 Sep 2015 06:26:47 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/186.html</guid>

</item>
<item>
	<title>ASP代码中如何屏蔽ip地址 禁止某IP段访问网站</title>
	<link>http://www.030904.net/program/184.html</link>
	<description><![CDATA[<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	经常有些地方性的B2B或者B2C网站到处都被批量发布好多垃圾信息，把我的解决办法分享给大家：
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	　　把以下代码加入到你的ASP页面就可以测试到效果了：
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '受屏蔽IP地址(段)集合，星号为通配符，通常保存于配置文件中。&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Const BadIPGroup = "192.168.1.*|202.68.*.*|*.12.55.34|185.*.96.24|127.*.0.1|192.168.0.1"
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If IsForbidIP(BadIPGroup) = True Then&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Response.Write(GetIP &amp;"IP地址禁止访问")&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;Response.End()&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; End If
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '参数vBadIP：要屏蔽的IP段,IP地址集合，用|符号分隔多个IP地址(段)&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '返回Bool：True用户IP在被屏蔽范围，False 反之&nbsp;<br style="font-size:13px;" />
<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Function IsForbidIP(vBadIP)&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim counter, arrIPPart, arrBadIP, arrBadIPPart, i, j&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;arrBadIP = Split(vBadIP, "|")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arrIPPart = Split(GetIP(), ".")&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For i = 0 To UBound(arrBadIP)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;counter = 0&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arrBadIPPart = Split(arrBadIP(i), ".")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For j = 0 To UBound(arrIPPart)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If(arrBadIPPart(j)) = "*" or Cstr(arrIPPart(j)) = Cstr(arrBadIPPart(j)) Then&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; counter = counter + 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If counter = 4 Then&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsForbidIP = True&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Function&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; Next&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; IsForbidIP = False&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; End Function
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	''返回客户IP地址&nbsp;<br style="font-size:13px;" />
<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Function GetIP()&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Dim IP&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp;&nbsp; IP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")&nbsp;&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp; If IP = "" Then IP = Request.ServerVariables("REMOTE_ADDR")&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp;&nbsp; GetIP = IP&nbsp;<br style="font-size:13px;" />
&nbsp;&nbsp; End Function<br style="font-size:13px;" />
&nbsp;&nbsp; %&gt;
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</p>
<p style="font-size:14px;font-family:微软雅黑;margin-top:15px;margin-bottom:15px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:23px;white-space:normal;background:#F5F8FD;">
	　　这样就可以限制网站访问的IP段了，你可以根据地区的IP段来设置。
</p>]]></description>
	<pubDate>Thu, 17 Sep 2015 06:20:43 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/184.html</guid>

</item>
<item>
	<title>FSO(File System Object)操作函数集(检测 创建 删除 文件 文件夹)</title>
	<link>http://www.030904.net/program/149.html</link>
	<description><![CDATA[<span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">////////////////////////////////////////////////FSO操作/////////////////////////////////////</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">判断文件夹是否存在</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FolderExits(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />Folder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Server.Mappath(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;Server.CreateObject(</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Scripting.FileSystemObject</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">IF</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO.FolderExists(Folder)&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;&nbsp;FolderExits</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">true</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Else</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;&nbsp;FolderExits</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">false</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">End</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">IF</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">End&nbsp;Function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">判断文件是否存在</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FileExits(FileName)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />FileName</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Server.Mappath(FileName)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;Server.CreateObject(</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Scripting.FileSystemObject</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">IF</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO.FileExists(FileName)&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;&nbsp;FileExits</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">true</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Else</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;&nbsp;FileExits</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">false</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">End</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">IF</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">End&nbsp;Function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">创建文件夹</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;CreateFolder(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">on</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">error</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">resume</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">next</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />Folder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Server.Mappath(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;Server.CreateObject(</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Scripting.FileSystemObject</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />FSO.CreateFolder(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;err</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&gt;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">0</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;err.clear<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;CreateFolder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">False</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">else</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;CreateFolder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">True</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">End&nbsp;function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">创建文件</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;CreateFile(FileName,Content)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">on</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">error</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">resume</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">next</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />FileName</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Server.Mappath(FileName)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;Server.CreateObject(</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Scripting.FileSystemObject</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;fd</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">FSO.createtextfile(FileName,</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">true</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />fd.writeline&nbsp;Content<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;err</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&gt;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">0</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;err.clear<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;CreateFile</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">False</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">else</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;CreateFile</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">True</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">End&nbsp;function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">删除文件</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;DeleteFile(FileName)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">on</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">error</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">resume</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">next</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;Server.CreateObject(</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Scripting.FileSystemObject</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO.FileExists(FileName)&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;FSO.DeleteFile&nbsp;FileName,</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">true</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;err</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&gt;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">0</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;err.clear<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;DeleteFile</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">False</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">else</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;DeleteFile</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">True</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end&nbsp;function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">'</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;">删除文件夹</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#008000;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;DeleteFolder(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">on</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">error</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">resume</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">next</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />Folder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">server.MapPath(Folder)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">Set</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;Server.CreateObject(</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">Scripting.FileSystemObject</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">"</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">)<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;FSO.FolderExists(Folder)&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;FSO.Deletefolder&nbsp;Folder,</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">true</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;err</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&gt;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">0</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">then</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;err.clear<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;Deletefolder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">False</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">else</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" />&nbsp;&nbsp;Deletefolder</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">=</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">True</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;"><br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">if</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;<br />
<img src="http://www.blogjava.net/Images/OutliningIndicators/None.gif" align="top" /></span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;color:#0000FF;">end&nbsp;function</span><span style="font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span>]]></description>
	<pubDate>Wed, 08 Oct 2014 12:27:38 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/149.html</guid>

</item>
<item>
	<title>lanmp v2.5安装soap支持方法</title>
	<link>http://www.030904.net/program/97.html</link>
	<description><![CDATA[<p>
	<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">服务器的环境采用的是lanmp v2.5，后来采用webservice接口做程序，发现不支持soap，只能自己安装，在网上找了很多资料，终于安装成功了，安装方式如下：</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">首先建立一个文件夹，以方便下载源程序，本文以test来命名。</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">进入web目录：</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">cd /www</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">在里面创建test文件夹：</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">mkdir test</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">下载lanmp v2.5至test文件夹</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">wget<span class="Apple-converted-space">&nbsp;</span></span><a style="padding-bottom:0px;widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;margin:0px;padding-left:0px;padding-right:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#26709a;word-spacing:0px;text-decoration:none;padding-top:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" href="http://dl.wdlinux.cn:5180/lanmp_v2.5.tar.gz" target="_blank">http://dl.wdlinux.cn:5180/lanmp_v2.5.tar.gz</a><span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"><span class="Apple-converted-space">&nbsp;</span></span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">解压下载的文件：</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">tar zxvf lanmp_v2.5.tar.gz<span class="Apple-converted-space">&nbsp;</span></span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">进入lanmp目录：</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">cd lanmp</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">tar zxvf php-5.3.27.tar.gz&nbsp; （解压对应的PHP版本）</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">cd php-5.3.27</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">cd ext/soap</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">/www/wdlinux/php/bin/phpize</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">./configure --with-php-config=/www/wdlinux/php/bin/php-config</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">make</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">make install</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">echo 'extension=soap.so' &gt;&gt; /www/wdlinux/etc/php.ini</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">然后重起下服务：</span><br style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;font:14px/22px Tahoma;white-space:normal;orphans:2;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" />
<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">service httpd restart<span class="Apple-converted-space">&nbsp;</span></span>
</p>
<p>
	<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"><span class="Apple-converted-space"></span></span>&nbsp;
</p>
<p>
	<span style="widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"><span class="Apple-converted-space">文章来源: PHP二次开发 <span style="text-align:left;widows:2;text-transform:none;background-color:#ffffff;text-indent:0px;display:inline !important;font:14px/22px Tahoma;white-space:normal;orphans:2;float:none;letter-spacing:normal;color:#444444;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;"><a href="http://www.php2.cc">http://www.php2.cc</a> </span></span></span>
</p>]]></description>
	<pubDate>Mon, 03 Mar 2014 04:05:53 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/97.html</guid>

</item>
<item>
	<title>ASP伪造REFERER</title>
	<link>http://www.030904.net/program/36.html</link>
	<description><![CDATA[<span id="zoom">&lt;%<br />
Function&nbsp;GetBody(weburl)&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;Retrieval&nbsp;=&nbsp;Server.CreateObject("MSXML2.XMLHTTP")&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;With&nbsp;Retrieval&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Open&nbsp;"Get",&nbsp;weburl,&nbsp;False,&nbsp;"",&nbsp;""&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.setRequestHeader&nbsp;"referer","http://www.030904.com/"'想改什么就改什么<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Send&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GetBody&nbsp;=&nbsp;.ResponseBody<br />
&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;With&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;GetBody&nbsp;=&nbsp;BytesToBstr(GetBody,"GB2312")<br />
&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;Retrieval&nbsp;=&nbsp;Nothing&nbsp;<br />
End&nbsp;Function<br />
<br />
Function&nbsp;BytesToBstr(body,Cset)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dim&nbsp;objstream<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set&nbsp;objstream&nbsp;=&nbsp;Server.CreateObject("adodb.stream")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Type&nbsp;=&nbsp;1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Mode&nbsp;=3<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Open<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Write&nbsp;body<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Position&nbsp;=&nbsp;0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Type&nbsp;=&nbsp;2<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Charset&nbsp;=&nbsp;Cset<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BytesToBstr&nbsp;=&nbsp;objstream.ReadText&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objstream.Close<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set&nbsp;objstream&nbsp;=&nbsp;nothing<br />
End&nbsp;Function<br />
<br />
Response.Write(GetBody("http://www.030904.com/referer.asp"))<br />
%&gt;&nbsp;<br />
<br />
</span>]]></description>
	<pubDate>Sat, 22 Jun 2013 12:03:53 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/36.html</guid>

</item>
<item>
	<title>ASP防止图片木马上传</title>
	<link>http://www.030904.net/program/34.html</link>
	<description><![CDATA[<span id="zoom">ASP木马防御：<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;adTypeBinary=1<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;dim&nbsp;jpg(1):jpg(0)=CByte(&amp;HFF):jpg(1)=CByte(&amp;HD8)<br />
dim&nbsp;bmp(1):bmp(0)=CByte(&amp;H42):bmp(1)=CByte(&amp;H4D)<br />
dim&nbsp;png(3):png(0)=CByte(&amp;H89):png(1)=CByte(&amp;H50):png(2)=CByte(&amp;H4E):png(3)=CByte(&amp;H47)<br />
dim&nbsp;gif(5):gif(0)=CByte(&amp;H47):gif(1)=CByte(&amp;H49):gif(2)=CByte(&amp;H46):gif(3)=CByte(&amp;H39):gif(4)=CByte(&amp;H38):gif(5)=CByte(&amp;H61)<br />
Response.Write&nbsp;CheckFileType(Server.MapPath("2.gif"))<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;CheckFileType(filename)<br />
on&nbsp;error&nbsp;resume&nbsp;next<br />
CheckFileType=false<br />
dim&nbsp;fstream,fileExt,stamp,i<br />
fileExt=mid(filename,InStrRev(filename,".")+1)<br />
set&nbsp;fstream=Server.createobject("ADODB.Stream")<br />
fstream.Open<br />
fstream.Type=adTypeBinary<br />
fstream.LoadFromFile&nbsp;filename<br />
fstream.position=0<br />
select&nbsp;case&nbsp;fileExt<br />
case&nbsp;"jpg","jpeg"<br />
stamp=fstream.read(2)<br />
for&nbsp;i=0&nbsp;to&nbsp;1<br />
if&nbsp;ascB(MidB(stamp,i+1,1))=jpg(i)&nbsp;then&nbsp;CheckFileType=true&nbsp;else&nbsp;CheckFileType=false<br />
next<br />
case&nbsp;"gif"<br />
stamp=fstream.read(6)<br />
for&nbsp;i=0&nbsp;to&nbsp;5<br />
if&nbsp;ascB(MidB(stamp,i+1,1))=gif(i)&nbsp;then&nbsp;CheckFileType=true&nbsp;else&nbsp;CheckFileType=false<br />
next<br />
case&nbsp;"png"<br />
stamp=fstream.read(4)<br />
for&nbsp;i=0&nbsp;to&nbsp;3<br />
if&nbsp;ascB(MidB(stamp,i+1,1))=png(i)&nbsp;then&nbsp;CheckFileType=true&nbsp;else&nbsp;CheckFileType=false<br />
next<br />
case&nbsp;"bmp"<br />
stamp=fstream.read(2)<br />
for&nbsp;i=0&nbsp;to&nbsp;1<br />
if&nbsp;ascB(MidB(stamp,i+1,1))=bmp(i)&nbsp;then&nbsp;CheckFileType=true&nbsp;else&nbsp;CheckFileType=false<br />
next<br />
end&nbsp;select<br />
fstream.Close<br />
set&nbsp;fseteam=nothing<br />
if&nbsp;err.number&lt;&gt;0&nbsp;then&nbsp;CheckFileType=false<br />
end&nbsp;function<br />
%&gt;<br />
</span>]]></description>
	<pubDate>Sat, 22 Jun 2013 12:02:07 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/34.html</guid>

</item>
<item>
	<title>利用ASP正则提取文章里面的图片的有效的src地</title>
	<link>http://www.030904.net/program/28.html</link>
	<description><![CDATA[<span id="zoom">&lt;%<br />
Function&nbsp;gameimgs(content)&nbsp;<br />
&nbsp;Set&nbsp;regEx&nbsp;=&nbsp;New&nbsp;RegExp&nbsp;'建立正则表达式。&nbsp;<br />
&nbsp;regEx.Pattern&nbsp;=&nbsp;"(&lt;img)(.[^&lt;&gt;]*)(src=)('|"&amp;CHR(34)&amp;"|&nbsp;)?(.[^'|\s|"&amp;CHR(34)&amp;"]*)(\.)(jpg|gif|png|bmp|jpeg)('|"&amp;CHR(34)&amp;"|\s|&gt;)(.[^&gt;]*)(&gt;)"&nbsp;'设置模式。&nbsp;<br />
&nbsp;regEx.IgnoreCase&nbsp;=&nbsp;True&nbsp;'设置是否区分字符大小写。&nbsp;<br />
&nbsp;regEx.Global&nbsp;=&nbsp;True&nbsp;'设置全局可用性。&nbsp;<br />
&nbsp;Set&nbsp;Matches&nbsp;=&nbsp;regEx.Execute(content)&nbsp;'执行搜索。<br />
&nbsp;For&nbsp;Each&nbsp;Match&nbsp;in&nbsp;Matches&nbsp;'遍历匹配集合。&nbsp;<br />
&nbsp;'输入图片地址&nbsp;<br />
&nbsp;'Response.Write&nbsp;Match.SubMatches(4)&amp;"."&amp;Match.SubMatches(6)<br />
&nbsp;gameimgs&nbsp;=&nbsp;Match.SubMatches(4)&amp;"."&amp;Match.SubMatches(6)<br />
&nbsp;Next<br />
End&nbsp;Function<br />
%&gt;<br />
<br />
&lt;ol&gt;<br />
&lt;%&nbsp;<br />
set&nbsp;imgrs=server.CreateObject("adodb.recordset")<br />
imgrs.open&nbsp;"select&nbsp;*&nbsp;from&nbsp;news",conn,1,3<br />
if&nbsp;imgrs.eof&nbsp;and&nbsp;imgrs.bof&nbsp;then<br />
&nbsp;response.write&nbsp;"111"<br />
else<br />
&nbsp;do&nbsp;until&nbsp;imgrs.eof<br />
&nbsp;&nbsp;response.write&nbsp;"&lt;li&gt;"&amp;&nbsp;imgrs("title")<br />
&nbsp;&nbsp;imgrs("saveimg")&nbsp;=&nbsp;gameimgs(imgrs("game"))<br />
&nbsp;&nbsp;imgrs("img")&nbsp;=&nbsp;gameimgs(imgrs("game"))<br />
&nbsp;&nbsp;response.write&nbsp;"&lt;/li&gt;"<br />
&nbsp;&nbsp;imgrs.update<br />
&nbsp;imgrs.movenext<br />
&nbsp;loop<br />
&nbsp;<br />
end&nbsp;if<br />
imgrs.close<br />
set&nbsp;imgrs=nothing<br />
%&gt;<br />
&lt;/ol&gt;<br />
&lt;%conn.close:set&nbsp;conn=nothing%&gt;<br />
利用ASP正则提取文章里面的图片的有效的src地址的示例<br />
</span>]]></description>
	<pubDate>Sat, 22 Jun 2013 11:58:15 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/28.html</guid>

</item>
<item>
	<title>asp正则替换内容里的特定内容</title>
	<link>http://www.030904.net/program/27.html</link>
	<description><![CDATA[<span id="zoom">&lt;%<br />
content&nbsp;=&nbsp;"&lt;!--开始--&gt;这里第一个需要替换的内容&lt;!--结束--&gt;&nbsp;不需要替换的内容&nbsp;&lt;!--开始--&gt;这里第二个需要替换的内容&lt;!--结束--&gt;&nbsp;asdas&nbsp;d&nbsp;asd&nbsp;as&nbsp;d&nbsp;as&nbsp;d&nbsp;asd&nbsp;as&nbsp;d&nbsp;asd&nbsp;as&nbsp;&lt;!--开始--&gt;这里第三个需要替换的内容&lt;!--结束--&gt;&nbsp;&lt;!--开始--&gt;这里第四个需要替换的内容&lt;!--结束--&gt;&nbsp;自行车自行车形成子形成在才这些才在"<br />
<br />
'正则替换函数'<br />
Function&nbsp;ReplaceExp(srcstr,&nbsp;patrn,&nbsp;replStr)&nbsp;<br />
Set&nbsp;regEx&nbsp;=&nbsp;New&nbsp;RegExp&nbsp;<br />
regEx.Pattern&nbsp;=&nbsp;patrn&nbsp;<br />
regEx.IgnoreCase&nbsp;=&nbsp;True&nbsp;<br />
regEx.Global&nbsp;=&nbsp;True&nbsp;<br />
regEx.Execute(srcstr)&nbsp;<br />
ReplaceExp&nbsp;=&nbsp;regEx.Replace(srcstr,&nbsp;replStr)&nbsp;<br />
Set&nbsp;regEx&nbsp;=&nbsp;Nothing&nbsp;<br />
End&nbsp;Function<br />
<br />
'调用并输出'<br />
Response.write&nbsp;content<br />
Response.write&nbsp;"&lt;hr&gt;"<br />
Response.write&nbsp;ReplaceExp(content,"\&lt;\!\-{2}开始\-{2}\&gt;.*?\&lt;\!\-{2}结束\-{2}\&gt;","被替换了")&nbsp;<br />
%&gt;&nbsp;<br />
</span>]]></description>
	<pubDate>Sat, 22 Jun 2013 11:57:35 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/27.html</guid>

</item>
<item>
	<title>ASP留言板IP或IP段限制与限制留言次数</title>
	<link>http://www.030904.net/program/26.html</link>
	<description><![CDATA[<span id="zoom">ASP留言板IP或IP段限制与限制留言次数<br />
<br />
&lt;%<br />
'留言板IP限制程序<br />
dim&nbsp;ips<br />
ips&nbsp;=&nbsp;left(Request.ServerVariables("REMOTE_ADDR"),15)<br />
response.write&nbsp;ips<br />
<br />
IpLists&nbsp;=&nbsp;"127.0.|"<br />
<br />
function&nbsp;isForbid(sip)<br />
&nbsp;dim&nbsp;Iplist,Iparr,Ipi<br />
&nbsp;Iplist&nbsp;=&nbsp;"|"&amp;&nbsp;IpLists&nbsp;&amp;"|"&nbsp;'<br />
&nbsp;Iparr&nbsp;=&nbsp;split(Iplist,"|")&nbsp;'生成数组<br />
&nbsp;for&nbsp;Ipi&nbsp;=&nbsp;0&nbsp;to&nbsp;ubound(Iparr)&nbsp;'循环查找数组IP<br />
&nbsp;&nbsp;if&nbsp;len(Iparr(Ipi))&nbsp;&gt;&nbsp;0&nbsp;and&nbsp;instr("|"&nbsp;&amp;&nbsp;sip,"|"&nbsp;&amp;&nbsp;Iparr(Ipi))&nbsp;&gt;&nbsp;0&nbsp;then<br />
&nbsp;&nbsp;&nbsp;isForbid&nbsp;=&nbsp;true<br />
&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
&nbsp;&nbsp;end&nbsp;if<br />
&nbsp;next<br />
&nbsp;isForbid&nbsp;=&nbsp;false<br />
end&nbsp;function<br />
<br />
if&nbsp;isForbid(ips)&nbsp;then<br />
&nbsp;Response.write&nbsp;"&lt;p&nbsp;align=""center""&gt;你没有留言的权限&lt;/p&gt;"<br />
else<br />
&nbsp;response.write&nbsp;"aaaaaaaaaa"<br />
end&nbsp;if<br />
<br />
<br />
'验证两次留言时间间隔&nbsp;方法&nbsp;01<br />
'PostIntervalTime&nbsp;=&nbsp;5*60&nbsp;'同一个IP多长时间可以留一次言,单位是秒，5分钟可以用5*60表示，不限制请设置为0<br />
PostIntervalTime&nbsp;=&nbsp;1*60<br />
&nbsp;<br />
&nbsp;if&nbsp;int(PostIntervalTime)&nbsp;&gt;&nbsp;0&nbsp;then<br />
&nbsp;&nbsp;newDate&nbsp;=&nbsp;Dateadd("s",int(PostIntervalTime)*-1,Now)<br />
&nbsp;&nbsp;Set&nbsp;rs&nbsp;=&nbsp;conn.execute("select&nbsp;top&nbsp;1&nbsp;ip&nbsp;from&nbsp;qwbmbook&nbsp;where&nbsp;ip&nbsp;=&nbsp;'"&amp;&nbsp;fixsql(ip)&nbsp;&amp;"'&nbsp;and&nbsp;time&nbsp;&gt;&nbsp;#"&amp;&nbsp;newDate&nbsp;&amp;"#")<br />
&nbsp;&nbsp;if&nbsp;not&nbsp;(rs.eof&nbsp;and&nbsp;rs.bof)&nbsp;then<br />
&nbsp;&nbsp;&nbsp;set&nbsp;rs&nbsp;=&nbsp;nothing<br />
&nbsp;&nbsp;&nbsp;conn.close<br />
&nbsp;&nbsp;&nbsp;set&nbsp;conn&nbsp;=&nbsp;nothing<br />
&nbsp;&nbsp;&nbsp;'er&nbsp;"请不要频繁留言，请等分钟"&amp;&nbsp;int(PostIntervalTime/60)&nbsp;&amp;"留言！",""<br />
&nbsp;&nbsp;end&nbsp;if<br />
&nbsp;&nbsp;set&nbsp;rs&nbsp;=&nbsp;nothing<br />
&nbsp;end&nbsp;if<br />
%&gt;<br />
</span>]]></description>
	<pubDate>Sat, 22 Jun 2013 11:57:09 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/26.html</guid>

</item>
<item>
	<title>ASP过滤SQL中的非法字符并格式化</title>
	<link>http://www.030904.net/program/25.html</link>
	<description><![CDATA[<span id="zoom">&lt;%<br />
function&nbsp;changechr(str)&nbsp;<br />
changechr=replace(replace(replace(replace(str,"&lt;","&amp;lt;"),"&gt;","&amp;gt;"),chr(13),"&lt;br&gt;"),"&nbsp;","&amp;nbsp;")&nbsp;<br />
changechr=replace(replace(replace(replace(changechr,"[sayyes]","&lt;div&nbsp;align=center&gt;&lt;img&nbsp;src="),"[b]","&lt;b&gt;"),"[red]","&lt;font&nbsp;color=CC0000&gt;"),"[big]","&lt;font&nbsp;size=7&gt;")&nbsp;<br />
changechr=replace(replace(replace(replace(changechr,"[/sayyes]","&gt;&lt;/img&gt;&lt;/div&gt;"),"[/b]","&lt;/b&gt;"),"[/red]","&lt;/font&gt;"),"[/big]","&lt;/font&gt;")&nbsp;<br />
end&nbsp;function<br />
<br />
'过滤SQL非法字符并格式化html代码<br />
function&nbsp;Replace_Text(fString)<br />
if&nbsp;isnull(fString)&nbsp;then<br />
Replace_Text=""<br />
exit&nbsp;function<br />
else<br />
fString=trim(fString)<br />
fString=replace(fString,"'","''")<br />
fString=replace(fString,";","；")<br />
fString=replace(fString,"--","—")<br />
fString=server.htmlencode(fString)<br />
Replace_Text=fString<br />
end&nbsp;if&nbsp;<br />
end&nbsp;function<br />
<br />
'会员发布的各种信息过滤<br />
'Function&nbsp;Replace_Text(fString)<br />
'If&nbsp;Not&nbsp;IsNull(fString)&nbsp;Then<br />
'fString&nbsp;=&nbsp;trim(fString)<br />
'fString&nbsp;=&nbsp;replace(fString,&nbsp;";",&nbsp;"；")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'分号过滤<br />
'fString&nbsp;=&nbsp;replace(fString,&nbsp;"--",&nbsp;"——")&nbsp;'--过滤<br />
'fString&nbsp;=&nbsp;replace(fString,&nbsp;"%20",&nbsp;"")&nbsp;&nbsp;&nbsp;&nbsp;'特殊字符过滤<br />
'fString&nbsp;=&nbsp;replace(fString,&nbsp;"==",&nbsp;"")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'==过滤<br />
'fString&nbsp;=&nbsp;replace(fString,&nbsp;"&gt;",&nbsp;"&amp;gt;")<br />
'fString&nbsp;=&nbsp;replace(fString,&nbsp;"&lt;",&nbsp;"&amp;lt;")<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(32),&nbsp;"&nbsp;")&nbsp;&nbsp;&nbsp;'&amp;nbsp;<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(9),&nbsp;"&nbsp;")&nbsp;&nbsp;&nbsp;&nbsp;'&amp;nbsp;<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(34),&nbsp;"&amp;quot;")<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(39),&nbsp;"&amp;#39;")&nbsp;'单引号过滤<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(13),&nbsp;"")<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(10)&nbsp;&amp;&nbsp;CHR(10),&nbsp;"&lt;/P&gt;&lt;P&gt;&nbsp;")<br />
'fString&nbsp;=&nbsp;Replace(fString,&nbsp;CHR(10),&nbsp;"&lt;BR&gt;&nbsp;")<br />
'Replace_Text&nbsp;=&nbsp;fString<br />
'End&nbsp;If<br />
'End&nbsp;Function<br />
<br />
'过滤SQL非法字符<br />
Function&nbsp;checkStr(Chkstr)<br />
dim&nbsp;Str:Str=Chkstr<br />
if&nbsp;isnull(Str)&nbsp;then<br />
&nbsp;&nbsp;&nbsp;checkStr&nbsp;=&nbsp;""<br />
&nbsp;&nbsp;&nbsp;exit&nbsp;Function<br />
else<br />
&nbsp;&nbsp;&nbsp;Str=replace(Str,"'","")<br />
&nbsp;&nbsp;&nbsp;Str=replace(Str,";","")<br />
&nbsp;&nbsp;&nbsp;Str=replace(Str,"--","")<br />
&nbsp;&nbsp;&nbsp;checkStr=Str<br />
end&nbsp;if<br />
End&nbsp;Function<br />
<br />
'检测传递的参数是否为数字型<br />
Function&nbsp;Chkrequest(Para)<br />
Chkrequest=False<br />
If&nbsp;Not&nbsp;(IsNull(Para)&nbsp;Or&nbsp;Trim(Para)=""&nbsp;Or&nbsp;Not&nbsp;IsNumeric(Para))&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;&nbsp;Chkrequest=True<br />
End&nbsp;If<br />
End&nbsp;Function<br />
<br />
'检测传递的参数是否为日期型<br />
Function&nbsp;Chkrequestdate(Para)<br />
Chkrequestdate=False<br />
If&nbsp;Not&nbsp;(IsNull(Para)&nbsp;Or&nbsp;Trim(Para)=""&nbsp;Or&nbsp;Not&nbsp;IsDate(Para))&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;&nbsp;Chkrequestdate=True<br />
End&nbsp;If<br />
End&nbsp;Function<br />
<br />
'得到当前页面的地址&nbsp;<br />
Function&nbsp;GetUrl()&nbsp;<br />
On&nbsp;Error&nbsp;Resume&nbsp;Next&nbsp;<br />
Dim&nbsp;strTemp&nbsp;<br />
If&nbsp;LCase(Request.ServerVariables("HTTPS"))&nbsp;=&nbsp;"off"&nbsp;Then&nbsp;<br />
strTemp&nbsp;=&nbsp;"http://"&nbsp;<br />
Else&nbsp;<br />
strTemp&nbsp;=&nbsp;"https://"&nbsp;<br />
End&nbsp;If&nbsp;<br />
strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("SERVER_NAME"))&nbsp;<br />
If&nbsp;Request.ServerVariables("SERVER_PORT")&nbsp;&lt;&gt;&nbsp;80&nbsp;Then&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;":"&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("SERVER_PORT"))&nbsp;<br />
strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("URL"))&nbsp;<br />
If&nbsp;Trim(Request.QueryString)&nbsp;&lt;&gt;&nbsp;""&nbsp;Then&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;"?"&nbsp;&amp;&nbsp;CheckStr(Trim(Request.QueryString))&nbsp;<br />
GetUrl&nbsp;=&nbsp;strTemp&nbsp;&nbsp;<br />
End&nbsp;Function&nbsp;<br />
<br />
'Function&nbsp;CheckReferer()&nbsp;&nbsp;&nbsp;'检查用户是否在浏览器里输入了本页的地址<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;sReferer,&nbsp;Icheck<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CheckReferer&nbsp;=&nbsp;True<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sReferer&nbsp;=&nbsp;Request.ServerVariables("HTTP_REFERER")<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServerIP&nbsp;=&nbsp;Request.ServerVariables("LOCAL_ADDR")<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Icheck&nbsp;=&nbsp;InStr(sReferer,&nbsp;"ServerIP")<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;Icheck&nbsp;=&nbsp;0&nbsp;Then<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CheckReferer&nbsp;=&nbsp;False<br />
'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If<br />
'End&nbsp;Function<br />
<br />
'日期格式化<br />
Function&nbsp;FormatDate(DT,tp)<br />
dim&nbsp;Y,M,D<br />
Y=Year(DT)<br />
M=month(DT)<br />
D=Day(DT)<br />
if&nbsp;M&lt;10&nbsp;then&nbsp;M="0"&amp;M<br />
if&nbsp;D&lt;10&nbsp;then&nbsp;D="0"&amp;D<br />
select&nbsp;case&nbsp;tp<br />
case&nbsp;1&nbsp;FormatDate=Y&amp;"年"&amp;M&amp;"月"&amp;D&amp;"日"<br />
case&nbsp;2&nbsp;FormatDate=Y&amp;"-"&amp;M&amp;"-"&amp;D<br />
end&nbsp;select<br />
End&nbsp;Function<br />
<br />
'不允许外部提交数据的选择<br />
Function&nbsp;ChkPost()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dim&nbsp;HTTP_REFERER,SERVER_NAME<br />
dim&nbsp;server_v1,server_v2<br />
chkpost=false<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SERVER_NAME=CheckStr(Request.ServerVariables("SERVER_NAME"))<br />
HTTP_REFERER=CheckStr(Request.ServerVariables("HTTP_REFERER"))<br />
server_v1=Cstr(HTTP_REFERER)<br />
server_v2=Cstr(SERVER_NAME)<br />
if&nbsp;mid(server_v1,8,len(server_v2))&lt;&gt;server_v2&nbsp;then<br />
&nbsp;&nbsp;&nbsp;chkpost=false<br />
else<br />
&nbsp;&nbsp;&nbsp;chkpost=true<br />
end&nbsp;if<br />
End&nbsp;Function<br />
<br />
'构造上传图片文件名随机数<br />
function&nbsp;MakedownName()<br />
dim&nbsp;fname<br />
fname&nbsp;=&nbsp;now()<br />
fname&nbsp;=&nbsp;replace(fname,"-","")<br />
fname&nbsp;=&nbsp;replace(fname,"&nbsp;","")&nbsp;<br />
fname&nbsp;=&nbsp;replace(fname,":","")<br />
fname&nbsp;=&nbsp;replace(fname,"PM","")<br />
fname&nbsp;=&nbsp;replace(fname,"AM","")<br />
fname&nbsp;=&nbsp;replace(fname,"上午","")<br />
fname&nbsp;=&nbsp;replace(fname,"下午","")<br />
fname&nbsp;=&nbsp;int(fname)&nbsp;+&nbsp;int((10-1+1)*Rnd&nbsp;+&nbsp;1)<br />
MakedownName=fname<br />
end&nbsp;function<br />
<br />
'Email检测<br />
function&nbsp;IsValidEmail(email)<br />
dim&nbsp;names,&nbsp;name,&nbsp;i,&nbsp;c<br />
IsValidEmail&nbsp;=&nbsp;true<br />
names&nbsp;=&nbsp;Split(email,&nbsp;"@")<br />
if&nbsp;UBound(names)&nbsp;&lt;&gt;&nbsp;1&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
end&nbsp;if<br />
for&nbsp;each&nbsp;name&nbsp;in&nbsp;names<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;Len(name)&nbsp;&lt;=&nbsp;0&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;if<br />
&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;i&nbsp;=&nbsp;1&nbsp;to&nbsp;Len(name)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c&nbsp;=&nbsp;Lcase(Mid(name,&nbsp;i,&nbsp;1))<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;InStr("abcdefghijklmnopqrstuvwxyz_-.",&nbsp;c)&nbsp;&lt;=&nbsp;0&nbsp;and&nbsp;not&nbsp;IsNumeric(c)&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;if<br />
&nbsp;&nbsp;&nbsp;&nbsp;next<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;Left(name,&nbsp;1)&nbsp;=&nbsp;"."&nbsp;or&nbsp;Right(name,&nbsp;1)&nbsp;=&nbsp;"."&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;if<br />
next<br />
if&nbsp;InStr(names(1),&nbsp;".")&nbsp;&lt;=&nbsp;0&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
end&nbsp;if<br />
i&nbsp;=&nbsp;Len(names(1))&nbsp;-&nbsp;InStrRev(names(1),&nbsp;".")<br />
if&nbsp;i&nbsp;&lt;&gt;&nbsp;2&nbsp;and&nbsp;i&nbsp;&lt;&gt;&nbsp;3&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;function<br />
end&nbsp;if<br />
if&nbsp;InStr(email,&nbsp;"..")&nbsp;&gt;&nbsp;0&nbsp;then<br />
&nbsp;&nbsp;&nbsp;&nbsp;IsValidEmail&nbsp;=&nbsp;false<br />
end&nbsp;if<br />
end&nbsp;function<br />
<br />
'Jmail邮件发送<br />
Function&nbsp;SendJmail(Email,Topic,MailBody)<br />
<br />
Dim&nbsp;JMail<br />
on&nbsp;error&nbsp;resume&nbsp;next<br />
Set&nbsp;JMail&nbsp;=&nbsp;Server.CreateObject("JMail.SMTPMail")<br />
JMail.LazySend&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;true<br />
JMail.silent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;true<br />
JMail.Charset&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"gb2312"<br />
JMail.ContentType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"text/html"<br />
JMail.Sender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"wemaster@alibaba.info"&nbsp;'我们网站自己的邮箱<br />
JMail.ReplyTo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"wemaster@alibaba.info"&nbsp;'我们网站自己的邮箱<br />
JMail.SenderName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;"阿里爸爸邮件发送"<br />
JMail.Subject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;Topic<br />
JMail.SimpleLayout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;true<br />
JMail.Body&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;MailBody<br />
JMail.Priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;3<br />
JMail.AddRecipient&nbsp;Email<br />
JMail.AddHeader&nbsp;"Originating-IP",&nbsp;GBL_IPAddress<br />
If&nbsp;JMail.Execute()&nbsp;=&nbsp;false&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;SendJmail&nbsp;=&nbsp;0<br />
Else<br />
&nbsp;&nbsp;&nbsp;SendJmail&nbsp;=&nbsp;1<br />
End&nbsp;If<br />
JMail.Close<br />
Set&nbsp;JMail&nbsp;=&nbsp;Nothing<br />
<br />
End&nbsp;Function<br />
<br />
'分页<br />
Function&nbsp;listPages(LinkFile)&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;not&nbsp;(rs.eof&nbsp;and&nbsp;rs.bof)&nbsp;then<br />
gopage=currentpage<br />
totalpage=n<br />
blockPage=Int((gopage-1)/10)*10+1<br />
'&nbsp;if&nbsp;instr(linkfile,"?page=")&gt;0&nbsp;or&nbsp;instr(linkfile,"&amp;page=")&gt;0&nbsp;then<br />
'&nbsp;pos=instr(linkfile,"page=")-2<br />
'&nbsp;linkfile=left(linkfile,pos)<br />
'&nbsp;end&nbsp;if<br />
<br />
If&nbsp;LCase(Request.ServerVariables("HTTPS"))&nbsp;=&nbsp;"off"&nbsp;Then&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;"http://"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;"https://"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("SERVER_NAME"))&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;Request.ServerVariables("SERVER_PORT")&nbsp;&lt;&gt;&nbsp;80&nbsp;Then&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;":"&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("SERVER_PORT"))&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("URL"))<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lenstrTemp=len(strTemp)+1&nbsp;<br />
if&nbsp;instr(left(linkfile,lenstrTemp),"?")&gt;0&nbsp;then&nbsp;<br />
<br />
if&nbsp;blockPage&nbsp;=&nbsp;1&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&lt;span&nbsp;disabled&gt;【←前10页&lt;/span&gt;&amp;nbsp;"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;span&nbsp;disabled&gt;【&lt;/span&gt;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&amp;blockPage-10&amp;"&gt;←前10页&lt;/a&gt;&amp;nbsp;")<br />
End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;i=1<br />
&nbsp;&nbsp;&nbsp;&nbsp;Do&nbsp;Until&nbsp;i&nbsp;&gt;&nbsp;10&nbsp;or&nbsp;blockPage&nbsp;&gt;&nbsp;n<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;blockPage=int(gopage)&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;font&nbsp;color=#FF0000&gt;[&lt;b&gt;"&amp;blockPage&amp;"&lt;/b&gt;]&lt;/font&gt;")<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&amp;blockPage&amp;"&gt;["&amp;blockPage&amp;"]&lt;/a&gt;&nbsp;")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;blockPage=blockPage+1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;=&nbsp;i&nbsp;+&nbsp;1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />
if&nbsp;blockPage&nbsp;&gt;&nbsp;totalpage&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&amp;nbsp;&lt;span&nbsp;disabled&gt;后10页→】"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&amp;nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&amp;blockPage&amp;"&gt;后10页→&lt;/a&gt;&lt;span&nbsp;disabled&gt;】")<br />
End&nbsp;If&nbsp;<br />
response.write"&nbsp;直接到第&nbsp;"<br />
response.write"&lt;select&nbsp;onchange=if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;i=1&nbsp;to&nbsp;totalpage<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;option&nbsp;value='"&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&nbsp;&amp;&nbsp;i&nbsp;&amp;&nbsp;"'"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;i=gopage&nbsp;then&nbsp;response.write"selected"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&gt;"&amp;i&amp;"&lt;/option&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;/select&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&nbsp;页&lt;Br&gt;&lt;Br&gt;"<br />
<br />
else<br />
<br />
if&nbsp;blockPage&nbsp;=&nbsp;1&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&lt;span&nbsp;disabled&gt;【←前10页&lt;/span&gt;&amp;nbsp;"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;span&nbsp;disabled&gt;【&lt;/span&gt;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&amp;blockPage-10&amp;"&gt;←前10页&lt;/a&gt;&amp;nbsp;")<br />
End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;i=1<br />
&nbsp;&nbsp;&nbsp;&nbsp;Do&nbsp;Until&nbsp;i&nbsp;&gt;&nbsp;10&nbsp;or&nbsp;blockPage&nbsp;&gt;&nbsp;n<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;blockPage=int(gopage)&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;font&nbsp;color=#FF0000&gt;[&lt;b&gt;"&amp;blockPage&amp;"&lt;/b&gt;]&lt;/font&gt;")<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&amp;blockPage&amp;"&gt;["&amp;blockPage&amp;"]&lt;/a&gt;&nbsp;")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;blockPage=blockPage+1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;=&nbsp;i&nbsp;+&nbsp;1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />
if&nbsp;blockPage&nbsp;&gt;&nbsp;totalpage&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&amp;nbsp;&lt;span&nbsp;disabled&gt;后10页→】"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&amp;nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&amp;blockPage&amp;"&gt;后10页→&lt;/a&gt;&lt;span&nbsp;disabled&gt;】")<br />
End&nbsp;If&nbsp;<br />
response.write"&nbsp;直接到第&nbsp;"<br />
response.write"&lt;select&nbsp;onchange=if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;i=1&nbsp;to&nbsp;totalpage<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;option&nbsp;value='"&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&nbsp;&amp;&nbsp;i&nbsp;&amp;&nbsp;"'"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;i=gopage&nbsp;then&nbsp;response.write"selected"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&gt;"&amp;i&amp;"&lt;/option&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;/select&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&nbsp;页&lt;Br&gt;&lt;Br&gt;"<br />
<br />
End&nbsp;If<br />
<br />
Startinfo=((gopage-1)*msg_per_page)+1<br />
Endinfo=gopage*msg_per_page<br />
if&nbsp;Endinfo&gt;totalrec&nbsp;then&nbsp;Endinfo=totalrec<br />
&nbsp;&nbsp;&nbsp;Response.Write("&amp;nbsp;&amp;nbsp;共&nbsp;"&amp;totalrec&amp;"&nbsp;条信息&nbsp;当前显示第&nbsp;"&amp;Startinfo&amp;"&nbsp;-&nbsp;"&amp;Endinfo&amp;"&nbsp;条&nbsp;每页&nbsp;"&amp;msg_per_page&amp;"&nbsp;条信息&nbsp;共&nbsp;"&amp;n&amp;"&nbsp;页")<br />
end&nbsp;if<br />
End&nbsp;Function<br />
<br />
'分页2<br />
Function&nbsp;listPages2(LinkFile)&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;not&nbsp;(rs.eof&nbsp;and&nbsp;rs.bof)&nbsp;then<br />
gopage=currentpage<br />
totalpage=n<br />
blockPage=Int((gopage-1)/10)*10+1<br />
<br />
If&nbsp;LCase(Request.ServerVariables("HTTPS"))&nbsp;=&nbsp;"off"&nbsp;Then&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;"http://"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;"https://"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("SERVER_NAME"))&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;Request.ServerVariables("SERVER_PORT")&nbsp;&lt;&gt;&nbsp;80&nbsp;Then&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;":"&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("SERVER_PORT"))&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strTemp&nbsp;=&nbsp;strTemp&nbsp;&amp;&nbsp;CheckStr(Request.ServerVariables("URL"))<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lenstrTemp=len(strTemp)+1&nbsp;<br />
if&nbsp;instr(left(linkfile,lenstrTemp),"?")&gt;0&nbsp;then&nbsp;<br />
<br />
if&nbsp;blockPage&nbsp;=&nbsp;1&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&lt;span&nbsp;disabled&gt;前10页&lt;/span&gt;&amp;nbsp;"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&amp;blockPage-10&amp;"&gt;前10页&lt;/a&gt;&amp;nbsp;")<br />
End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;i=1<br />
&nbsp;&nbsp;&nbsp;&nbsp;Do&nbsp;Until&nbsp;i&nbsp;&gt;&nbsp;10&nbsp;or&nbsp;blockPage&nbsp;&gt;&nbsp;n<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;blockPage=int(gopage)&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;font&nbsp;color=#FF0000&gt;&lt;b&gt;"&amp;blockPage&amp;"&lt;/b&gt;&lt;/font&gt;")<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&amp;blockPage&amp;"&gt;"&amp;blockPage&amp;"&lt;/a&gt;&nbsp;")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;blockPage=blockPage+1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;=&nbsp;i&nbsp;+&nbsp;1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />
if&nbsp;blockPage&nbsp;&gt;&nbsp;totalpage&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&amp;nbsp;&lt;span&nbsp;disabled&gt;后10页"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&amp;nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&amp;blockPage&amp;"&gt;后10页&lt;/a&gt;&lt;span&nbsp;disabled&gt;")<br />
End&nbsp;If&nbsp;<br />
response.write"&nbsp;直接到第&nbsp;"<br />
response.write"&lt;select&nbsp;onchange=if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;i=1&nbsp;to&nbsp;totalpage<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;option&nbsp;value='"&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"&amp;page="&nbsp;&amp;&nbsp;i&nbsp;&amp;&nbsp;"'"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;i=gopage&nbsp;then&nbsp;response.write"selected"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&gt;"&amp;i&amp;"&lt;/option&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;/select&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&nbsp;页&lt;Br&gt;&lt;Br&gt;"<br />
<br />
else<br />
<br />
if&nbsp;blockPage&nbsp;=&nbsp;1&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&lt;span&nbsp;disabled&gt;【←前10页&lt;/span&gt;&amp;nbsp;"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;span&nbsp;disabled&gt;【&lt;/span&gt;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&amp;blockPage-10&amp;"&gt;←前10页&lt;/a&gt;&amp;nbsp;")<br />
End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;i=1<br />
&nbsp;&nbsp;&nbsp;&nbsp;Do&nbsp;Until&nbsp;i&nbsp;&gt;&nbsp;10&nbsp;or&nbsp;blockPage&nbsp;&gt;&nbsp;n<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;blockPage=int(gopage)&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write("&lt;font&nbsp;color=#FF0000&gt;[&lt;b&gt;"&amp;blockPage&amp;"&lt;/b&gt;]&lt;/font&gt;")<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&amp;blockPage&amp;"&gt;["&amp;blockPage&amp;"]&lt;/a&gt;&nbsp;")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;blockPage=blockPage+1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i&nbsp;=&nbsp;i&nbsp;+&nbsp;1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />
if&nbsp;blockPage&nbsp;&gt;&nbsp;totalpage&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;Response.Write&nbsp;"&amp;nbsp;&lt;span&nbsp;disabled&gt;后10页→】"<br />
Else<br />
&nbsp;&nbsp;&nbsp;Response.Write("&amp;nbsp;&lt;a&nbsp;href="&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&amp;blockPage&amp;"&gt;后10页→&lt;/a&gt;&lt;span&nbsp;disabled&gt;】")<br />
End&nbsp;If&nbsp;<br />
response.write"&nbsp;直接到第&nbsp;"<br />
response.write"&lt;select&nbsp;onchange=if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;i=1&nbsp;to&nbsp;totalpage<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;option&nbsp;value='"&nbsp;&amp;&nbsp;LinkFile&nbsp;&amp;&nbsp;"?page="&nbsp;&amp;&nbsp;i&nbsp;&amp;&nbsp;"'"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;i=gopage&nbsp;then&nbsp;response.write"selected"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&gt;"&amp;i&amp;"&lt;/option&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&lt;/select&gt;"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write"&nbsp;页&lt;Br&gt;&lt;Br&gt;"<br />
<br />
End&nbsp;If<br />
<br />
Startinfo=((gopage-1)*msg_per_page)+1<br />
Endinfo=gopage*msg_per_page<br />
if&nbsp;Endinfo&gt;totalrec&nbsp;then&nbsp;Endinfo=totalrec<br />
&nbsp;&nbsp;&nbsp;Response.Write("&amp;nbsp;&amp;nbsp;共&nbsp;"&amp;totalrec&amp;"&nbsp;条信息&nbsp;当前显示第&nbsp;"&amp;Startinfo&amp;"&nbsp;-&nbsp;"&amp;Endinfo&amp;"&nbsp;条&nbsp;每页&nbsp;"&amp;msg_per_page&amp;"&nbsp;条信息&nbsp;共&nbsp;"&amp;n&amp;"&nbsp;页")<br />
end&nbsp;if<br />
End&nbsp;Function<br />
<br />
'判断文件类型是否合格<br />
Function&nbsp;CheckFileExt(FileExt)<br />
Dim&nbsp;ForumUpload,i<br />
ForumUpload="gif,jpg,bmp,jpeg,png"<br />
ForumUpload=Split(ForumUpload,",")<br />
CheckFileExt=False<br />
For&nbsp;i=0&nbsp;to&nbsp;UBound(ForumUpload)<br />
&nbsp;&nbsp;&nbsp;If&nbsp;LCase(FileExt)=Lcase(Trim(ForumUpload(i)))&nbsp;Then<br />
&nbsp;&nbsp;&nbsp;&nbsp;CheckFileExt=True<br />
&nbsp;&nbsp;&nbsp;&nbsp;Exit&nbsp;Function<br />
&nbsp;&nbsp;&nbsp;End&nbsp;If<br />
Next<br />
End&nbsp;Function<br />
'格式后缀<br />
Function&nbsp;FixName(UpFileExt)<br />
If&nbsp;IsEmpty(UpFileExt)&nbsp;Then&nbsp;Exit&nbsp;Function<br />
FixName&nbsp;=&nbsp;Lcase(UpFileExt)<br />
FixName&nbsp;=&nbsp;Replace(FixName,Chr(0),"")<br />
FixName&nbsp;=&nbsp;Replace(FixName,".","")<br />
FixName&nbsp;=&nbsp;Replace(FixName,"asp","")<br />
FixName&nbsp;=&nbsp;Replace(FixName,"asa","")<br />
FixName&nbsp;=&nbsp;Replace(FixName,"aspx","")<br />
FixName&nbsp;=&nbsp;Replace(FixName,"cer","")<br />
FixName&nbsp;=&nbsp;Replace(FixName,"cdx","")<br />
FixName&nbsp;=&nbsp;Replace(FixName,"htr","")<br />
End&nbsp;Function<br />
'文件Content-Type判断<br />
Function&nbsp;CheckFileType(FileType)<br />
CheckFileType&nbsp;=&nbsp;False<br />
If&nbsp;Left(Cstr(Lcase(Trim(FileType))),6)="image/"&nbsp;Then&nbsp;CheckFileType&nbsp;=&nbsp;True<br />
End&nbsp;Function<br />
%&gt;<br />
</span>]]></description>
	<pubDate>Sat, 22 Jun 2013 11:56:31 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/25.html</guid>

</item>
<item>
	<title>桃源网络硬盘AJAX问题</title>
	<link>http://www.030904.net/program/8.html</link>
	<description><![CDATA[<span id="zoom">最近在玩这个网络硬盘程序,我是将程序放到了子目录下,但是总是出现AJAX的问题.百度到网上找到很多方法,都是说<br />
<br />
点注册出现正在处理后没有反应，并有脚本错误，文件操作没有反应。<br />
IIS缺少默认的ashx扩展名支持！无法启用ajax，请在网站属性-&gt;目录-&gt;配置里，添加.ashx的扩展名，路径要设定到c:\windows\microsoft.net\framework\v1.1.4322\aspnet_isapi.dll，若为.net2.0版本，中间的版本号要改为v2.0.50727，添加时一定要把“确认文件是否存在”的对勾去掉!<br />
4.1以下版本的升级用户还要确保web.config里面有&lt;add&nbsp;verb="POST,GET"&nbsp;path="ajaxpro/*.ashx"&nbsp;type="AjaxPro.AjaxHandlerFactory,&nbsp;AjaxPro"&nbsp;/&gt;这行。<br />
<br />
其实都是设置的问题,如果将放到子目录,在IIS中选择子目录,属性,创建程序即可.网上说的那些都是你抄我的，我抄你的。因为安装了NET2.0，.ashx等是自带支持的。<br />
</span>]]></description>
	<pubDate>Fri, 21 Jun 2013 15:09:40 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/8.html</guid>

</item>
<item>
	<title>ASP中过滤IP地址</title>
	<link>http://www.030904.net/program/7.html</link>
	<description><![CDATA[<span id="zoom">&lt;%<br />
'过滤IP访问<br />
'受屏蔽IP地址(段)集合，星号为通配符，通常保存于配置文件中。<br />
Const&nbsp;BadIPGroup&nbsp;=&nbsp;"192.168.1.*|192.168.0.*|127.*.0.1|192.168.0.1"<br />
If&nbsp;IsForbidIP(BadIPGroup)&nbsp;=&nbsp;True&nbsp;Then<br />
Response.Write(GetIP&nbsp;&amp;"IP地址禁止访问")<br />
Response.End()<br />
End&nbsp;If<br />
'参数vBadIP：要屏蔽的IP段,IP地址集合，用|符号分隔多个IP地址(段)<br />
'返回Bool：True用户IP在被屏蔽范围，False&nbsp;反之<br />
Function&nbsp;IsForbidIP(vBadIP)<br />
Dim&nbsp;counter,&nbsp;arrIPPart,&nbsp;arrBadIP,&nbsp;arrBadIPPart,&nbsp;i,&nbsp;j<br />
arrBadIP&nbsp;=&nbsp;Split(vBadIP,&nbsp;"|")<br />
arrIPPart&nbsp;=&nbsp;Split(GetIP(),&nbsp;".")<br />
For&nbsp;i&nbsp;=&nbsp;0&nbsp;To&nbsp;UBound(arrBadIP)<br />
counter&nbsp;=&nbsp;0<br />
arrBadIPPart&nbsp;=&nbsp;Split(arrBadIP(i),&nbsp;".")<br />
For&nbsp;j&nbsp;=&nbsp;0&nbsp;To&nbsp;UBound(arrIPPart)<br />
If(arrBadIPPart(j))&nbsp;=&nbsp;"*"&nbsp;or&nbsp;Cstr(arrIPPart(j))&nbsp;=&nbsp;Cstr(arrBadIPPart(j))&nbsp;Then<br />
counter&nbsp;=&nbsp;counter&nbsp;+&nbsp;1<br />
End&nbsp;If<br />
Next<br />
If&nbsp;counter&nbsp;=&nbsp;4&nbsp;Then<br />
IsForbidIP&nbsp;=&nbsp;True<br />
Exit&nbsp;Function<br />
End&nbsp;If<br />
Next<br />
IsForbidIP&nbsp;=&nbsp;False<br />
End&nbsp;Function<br />
''返回客户IP地址<br />
Function&nbsp;GetIP()<br />
Dim&nbsp;IP<br />
IP&nbsp;=&nbsp;Request.ServerVariables("HTTP_X_FORWARDED_FOR")<br />
If&nbsp;IP&nbsp;=&nbsp;""&nbsp;Then&nbsp;IP&nbsp;=&nbsp;Request.ServerVariables("REMOTE_ADDR")<br />
GetIP&nbsp;=&nbsp;IP<br />
End&nbsp;Function&nbsp;<br />
%&gt;<br />
</span>]]></description>
	<pubDate>Fri, 21 Jun 2013 15:08:38 +0000</pubDate>
	<author>山坛兄弟</author>
	<guid>http://www.030904.net/program/7.html</guid>

</item></channel>
</rss>