<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just is here--恰恰在这里 &#187; ASP</title>
	<atom:link href="http://ishere.cn/tag/asp/feed" rel="self" type="application/rss+xml" />
	<link>http://ishere.cn</link>
	<description>仅此而已</description>
	<lastBuildDate>Fri, 06 Aug 2010 00:12:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>风声无组件上传类修改版</title>
		<link>http://ishere.cn/2008/12/01/%e9%a3%8e%e5%a3%b0%e6%97%a0%e7%bb%84%e4%bb%b6%e4%b8%8a%e4%bc%a0%e7%b1%bb%e4%bf%ae%e6%94%b9%e7%89%88.html</link>
		<comments>http://ishere.cn/2008/12/01/%e9%a3%8e%e5%a3%b0%e6%97%a0%e7%bb%84%e4%bb%b6%e4%b8%8a%e4%bc%a0%e7%b1%bb%e4%bf%ae%e6%94%b9%e7%89%88.html#comments</comments>
		<pubDate>Mon, 01 Dec 2008 07:51:43 +0000</pubDate>
		<dc:creator>jena</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[asp upload]]></category>

		<guid isPermaLink="false">http://www.ishere.cn/?p=463</guid>
		<description><![CDATA[这次修改的更新主要是增加了对保存目标路径的判断，如果不存在，就自动生成，SavePath的参数支持相对路径和绝对路径 uploadclass 下面把代码贴出来 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403'---------------------------------------------------------- '**************** &#160;风声无组件上传类 2.11 &#160;***************** '作者：风声 '网站：http://www.fonshen.com '邮件：webmaster@fonshen.com '版权：版权全体,源代码公开,各种用途均可免费使用 '修改：迦楠 '网站：http://www.ishere.cn &#124; http://www.aobodo.com '说明：SavePath参数支持相对与绝对两种路径,并自动生成目标文件夹 '********************************************************** '---------------------------------------------------------- Class UpLoadClass Private m_TotalSize,m_MaxSize,m_FileType,m_SavePath,m_AutoSave,m_Error,m_Charset Private m_dicForm,m_binForm,m_binItem,m_strDate,m_lngTime Private m_Fso,astrPath, ulngPath, i, strTmpPath Public&#160; FormItem,FileItem Public Property Get Version Version=&#34;Fonshen UpLoadClass Version 2.11&#34; &#8230; <a href="http://ishere.cn/2008/12/01/%e9%a3%8e%e5%a3%b0%e6%97%a0%e7%bb%84%e4%bb%b6%e4%b8%8a%e4%bc%a0%e7%b1%bb%e4%bf%ae%e6%94%b9%e7%89%88.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>这次修改的更新主要是增加了对保存目标路径的判断，如果不存在，就自动生成，SavePath的参数支持相对路径和绝对路径<br />
<a href="http://www.ishere.cn/wp-content/uploads/2008/12/uploadclass.rar">uploadclass</a><br />
下面把代码贴出来</p>
<div class="codecolorer-container asp geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br />208<br />209<br />210<br />211<br />212<br />213<br />214<br />215<br />216<br />217<br />218<br />219<br />220<br />221<br />222<br />223<br />224<br />225<br />226<br />227<br />228<br />229<br />230<br />231<br />232<br />233<br />234<br />235<br />236<br />237<br />238<br />239<br />240<br />241<br />242<br />243<br />244<br />245<br />246<br />247<br />248<br />249<br />250<br />251<br />252<br />253<br />254<br />255<br />256<br />257<br />258<br />259<br />260<br />261<br />262<br />263<br />264<br />265<br />266<br />267<br />268<br />269<br />270<br />271<br />272<br />273<br />274<br />275<br />276<br />277<br />278<br />279<br />280<br />281<br />282<br />283<br />284<br />285<br />286<br />287<br />288<br />289<br />290<br />291<br />292<br />293<br />294<br />295<br />296<br />297<br />298<br />299<br />300<br />301<br />302<br />303<br />304<br />305<br />306<br />307<br />308<br />309<br />310<br />311<br />312<br />313<br />314<br />315<br />316<br />317<br />318<br />319<br />320<br />321<br />322<br />323<br />324<br />325<br />326<br />327<br />328<br />329<br />330<br />331<br />332<br />333<br />334<br />335<br />336<br />337<br />338<br />339<br />340<br />341<br />342<br />343<br />344<br />345<br />346<br />347<br />348<br />349<br />350<br />351<br />352<br />353<br />354<br />355<br />356<br />357<br />358<br />359<br />360<br />361<br />362<br />363<br />364<br />365<br />366<br />367<br />368<br />369<br />370<br />371<br />372<br />373<br />374<br />375<br />376<br />377<br />378<br />379<br />380<br />381<br />382<br />383<br />384<br />385<br />386<br />387<br />388<br />389<br />390<br />391<br />392<br />393<br />394<br />395<br />396<br />397<br />398<br />399<br />400<br />401<br />402<br />403<br /></div></td><td><div class="asp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008000;">'----------------------------------------------------------</span><br />
<span style="color: #008000;">'**************** &nbsp;风声无组件上传类 2.11 &nbsp;*****************</span><br />
<span style="color: #008000;">'作者：风声</span><br />
<span style="color: #008000;">'网站：http://www.fonshen.com</span><br />
<span style="color: #008000;">'邮件：webmaster@fonshen.com</span><br />
<span style="color: #008000;">'版权：版权全体,源代码公开,各种用途均可免费使用</span><br />
<span style="color: #008000;">'修改：迦楠</span><br />
<span style="color: #008000;">'网站：http://www.ishere.cn | http://www.aobodo.com</span><br />
<span style="color: #008000;">'说明：SavePath参数支持相对与绝对两种路径,并自动生成目标文件夹</span><br />
<span style="color: #008000;">'**********************************************************</span><br />
<span style="color: #008000;">'----------------------------------------------------------</span><br />
<span style="color: #0000ff; font-weight: bold;">Class</span> UpLoadClass<br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> m_TotalSize,m_MaxSize,m_FileType,m_SavePath,m_AutoSave,m_Error,m_Charset<br />
<span style="color: #990099; font-weight: bold;">Private</span> m_dicForm,m_binForm,m_binItem,m_strDate,m_lngTime<br />
<span style="color: #990099; font-weight: bold;">Private</span> m_Fso,astrPath, ulngPath, i, strTmpPath<br />
<span style="color: #990099; font-weight: bold;">Public</span>&nbsp; FormItem,FileItem<br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> Version<br />
Version<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Fonshen UpLoadClass Version 2.11&quot;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #006600; font-weight: bold;">&lt;</span>span id<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;more-463&quot;</span><span style="color: #006600; font-weight: bold;">&gt;&lt;/</span>span<span style="color: #006600; font-weight: bold;">&gt;</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> <span style="color: #990099; font-weight: bold;">Error</span><br />
<span style="color: #990099; font-weight: bold;">Error</span><span style="color: #006600; font-weight: bold;">=</span>m_Error<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> <span style="color: #330066;">Charset</span><br />
<span style="color: #330066;">Charset</span><span style="color: #006600; font-weight: bold;">=</span>m_Charset<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Let</span> <span style="color: #330066;">Charset</span><span style="color: #006600; font-weight:bold;">&#40;</span>strCharset<span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_Charset<span style="color: #006600; font-weight: bold;">=</span>strCharset<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> TotalSize<br />
TotalSize<span style="color: #006600; font-weight: bold;">=</span>m_TotalSize<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Let</span> TotalSize<span style="color: #006600; font-weight:bold;">&#40;</span>lngSize<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> isNumeric<span style="color: #006600; font-weight:bold;">&#40;</span>lngSize<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span> m_TotalSize<span style="color: #006600; font-weight: bold;">=</span><span style="color: #990099; font-weight: bold;">Clng</span><span style="color: #006600; font-weight:bold;">&#40;</span>lngSize<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> MaxSize<br />
MaxSize<span style="color: #006600; font-weight: bold;">=</span>m_MaxSize<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Let</span> MaxSize<span style="color: #006600; font-weight:bold;">&#40;</span>lngSize<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> isNumeric<span style="color: #006600; font-weight:bold;">&#40;</span>lngSize<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span> m_MaxSize<span style="color: #006600; font-weight: bold;">=</span><span style="color: #990099; font-weight: bold;">Clng</span><span style="color: #006600; font-weight:bold;">&#40;</span>lngSize<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> FileType<br />
FileType<span style="color: #006600; font-weight: bold;">=</span>m_FileType<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Let</span> FileType<span style="color: #006600; font-weight:bold;">&#40;</span>strType<span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_FileType<span style="color: #006600; font-weight: bold;">=</span>strType<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> SavePath<br />
SavePath<span style="color: #006600; font-weight: bold;">=</span>m_SavePath<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Let</span> SavePath<span style="color: #006600; font-weight:bold;">&#40;</span>strPath<span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_SavePath<span style="color: #006600; font-weight: bold;">=</span><span style="color: #330066;">Replace</span><span style="color: #006600; font-weight:bold;">&#40;</span>strPath,chr<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">0</span><span style="color: #006600; font-weight:bold;">&#41;</span>,<span style="color: #cc0000;">&quot;&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_SavePath<span style="color: #006600; font-weight: bold;">=</span>AutoCreateFolder<span style="color: #006600; font-weight:bold;">&#40;</span>m_SavePath<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Get</span> AutoSave<br />
AutoSave<span style="color: #006600; font-weight: bold;">=</span>m_AutoSave<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #330066;">Property</span> <span style="color: #990099; font-weight: bold;">Let</span> AutoSave<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">byVal</span> Flag<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">select</span> <span style="color: #990099; font-weight: bold;">case</span> Flag<br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #800000;">0</span>,<span style="color: #800000;">1</span>,<span style="color: #800000;">2</span><span style="color: #006600; font-weight: bold;">:</span> m_AutoSave<span style="color: #006600; font-weight: bold;">=</span>Flag<br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">select</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #330066;">Property</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Sub</span> Class_Initialize<br />
m_Error &nbsp; &nbsp;<span style="color: #006600; font-weight: bold;">=</span> -<span style="color: #800000;">1</span><br />
m_Charset &nbsp;<span style="color: #006600; font-weight: bold;">=</span> <span style="color: #cc0000;">&quot;utf-8&quot;</span><br />
m_TotalSize<span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span><br />
m_MaxSize &nbsp;<span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">153600</span><br />
m_FileType <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #cc0000;">&quot;jpg/gif&quot;</span><br />
m_SavePath <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #cc0000;">&quot;&quot;</span><br />
m_AutoSave <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">2</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> dtmNow <span style="color: #006600; font-weight: bold;">:</span> dtmNow <span style="color: #006600; font-weight: bold;">=</span> Date<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_strDate &nbsp;<span style="color: #006600; font-weight: bold;">=</span> <span style="color: #330066;">Year</span><span style="color: #006600; font-weight:bold;">&#40;</span>dtmNow<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>Right<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;0&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>Month<span style="color: #006600; font-weight:bold;">&#40;</span>dtmNow<span style="color: #006600; font-weight:bold;">&#41;</span>,<span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>Right<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;0&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>Day<span style="color: #006600; font-weight:bold;">&#40;</span>dtmNow<span style="color: #006600; font-weight:bold;">&#41;</span>,<span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_lngTime &nbsp;<span style="color: #006600; font-weight: bold;">=</span> <span style="color: #990099; font-weight: bold;">Clng</span><span style="color: #006600; font-weight:bold;">&#40;</span>Timer<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">*</span><span style="color: #800000;">1000</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_binForm <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #990099; font-weight: bold;">Server</span>.<span style="color: #330066;">CreateObject</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;ADODB.Stream&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_binItem <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #990099; font-weight: bold;">Server</span>.<span style="color: #330066;">CreateObject</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;ADODB.Stream&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_dicForm <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #990099; font-weight: bold;">Server</span>.<span style="color: #330066;">CreateObject</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;Scripting.Dictionary&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">CompareMode</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">1</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_Fso <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #990099; font-weight: bold;">Server</span>.<span style="color: #330066;">CreateObject</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;Scripting.FileSystemObject&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Sub</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Sub</span> Class_Terminate<br />
m_dicForm.<span style="color: #9900cc;">RemoveAll</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_dicForm <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">nothing</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_binItem <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">nothing</span><br />
m_binForm.<span style="color: #330066;">Close</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_binForm <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">nothing</span><br />
<span style="color: #990099; font-weight: bold;">Set</span> m_Fso <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">nothing</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Sub</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #0000ff; font-weight: bold;">Function</span> <span style="color: #330066;">Open</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #330066;">Open</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_Error<span style="color: #006600; font-weight: bold;">=</span>-<span style="color: #800000;">1</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_Error<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
Exit <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> lngRequestSize <span style="color: #006600; font-weight: bold;">:</span> lngRequestSize<span style="color: #006600; font-weight: bold;">=</span><span style="color: #990099; font-weight: bold;">Request</span>.<span style="color: #330066;">TotalBytes</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_TotalSize<span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #0000ff; font-weight: bold;">and</span> lngRequestSize<span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span>m_TotalSize <span style="color: #990099; font-weight: bold;">then</span><br />
m_Error<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">5</span><br />
Exit <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<span style="color: #990099; font-weight: bold;">elseif</span> lngRequestSize<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">1</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_Error<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">4</span><br />
Exit <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Dim</span> lngChunkByte <span style="color: #006600; font-weight: bold;">:</span> lngChunkByte <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">102400</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> lngReadSize <span style="color: #006600; font-weight: bold;">:</span> lngReadSize <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span><br />
m_binForm.<span style="color: #9900cc;">Type</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">1</span><br />
m_binForm.<span style="color: #330066;">Open</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">do</span><br />
m_binForm.<span style="color: #330066;">Write</span> <span style="color: #990099; font-weight: bold;">Request</span>.<span style="color: #330066;">BinaryRead</span><span style="color: #006600; font-weight:bold;">&#40;</span>lngChunkByte<span style="color: #006600; font-weight:bold;">&#41;</span><br />
lngReadSize<span style="color: #006600; font-weight: bold;">=</span>lngReadSize+lngChunkByte<br />
<span style="color: #990099; font-weight: bold;">if</span> &nbsp;lngReadSize <span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;=</span> lngRequestSize <span style="color: #990099; font-weight: bold;">then</span> exit <span style="color: #990099; font-weight: bold;">do</span><br />
<span style="color: #990099; font-weight: bold;">loop</span><br />
m_binForm.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> binRequestData <span style="color: #006600; font-weight: bold;">:</span> binRequestData<span style="color: #006600; font-weight: bold;">=</span>m_binForm.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Dim</span> bCrLf,strSeparator,intSeparator<br />
bCrLf<span style="color: #006600; font-weight: bold;">=</span>ChrB<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">13</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>ChrB<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">10</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
intSeparator<span style="color: #006600; font-weight: bold;">=</span>InstrB<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span>,binRequestData,bCrLf<span style="color: #006600; font-weight:bold;">&#41;</span>-<span style="color: #800000;">1</span><br />
strSeparator<span style="color: #006600; font-weight: bold;">=</span>LeftB<span style="color: #006600; font-weight:bold;">&#40;</span>binRequestData,intSeparator<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Dim</span> strItem,strInam,strFtyp,strPuri,strFnam,strFext,lngFsiz<br />
<span style="color: #990099; font-weight: bold;">Const</span> strSplit<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;'&quot;</span><span style="color: #cc0000;">&quot;&amp;gt;&quot;</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> strFormItem,strFileItem,intTemp,strTemp<br />
<span style="color: #990099; font-weight: bold;">Dim</span> p_start <span style="color: #006600; font-weight: bold;">:</span> p_start<span style="color: #006600; font-weight: bold;">=</span>intSeparator+<span style="color: #800000;">2</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> p_end<br />
<span style="color: #990099; font-weight: bold;">Do</span><br />
p_end <span style="color: #006600; font-weight: bold;">=</span> InStrB<span style="color: #006600; font-weight:bold;">&#40;</span>p_start,binRequestData,bCrLf<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>bCrLf<span style="color: #006600; font-weight:bold;">&#41;</span>-<span style="color: #800000;">1</span><br />
m_binItem.<span style="color: #9900cc;">Type</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">1</span><br />
m_binItem.<span style="color: #330066;">Open</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_binForm.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span>p_start<br />
m_binForm.<span style="color: #9900cc;">CopyTo</span> m_binItem,p_end-p_start<br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
m_binItem.<span style="color: #9900cc;">Type</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">2</span><br />
m_binItem.<span style="color: #330066;">Charset</span><span style="color: #006600; font-weight: bold;">=</span>m_Charset<br />
strItem <span style="color: #006600; font-weight: bold;">=</span> m_binItem.<span style="color: #9900cc;">ReadText</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_binItem.<span style="color: #330066;">Close</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
intTemp<span style="color: #006600; font-weight: bold;">=</span><span style="color: #330066;">Instr</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">39</span>,strItem,<span style="color: #cc0000;">&quot;&quot;</span><span style="color: #cc0000;">&quot;&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
strInam<span style="color: #006600; font-weight: bold;">=</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strItem,<span style="color: #800000;">39</span>,intTemp-<span style="color: #800000;">39</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<br />
p_start <span style="color: #006600; font-weight: bold;">=</span> p_end + <span style="color: #800000;">4</span><br />
p_end <span style="color: #006600; font-weight: bold;">=</span> InStrB<span style="color: #006600; font-weight:bold;">&#40;</span>p_start,binRequestData,strSeparator<span style="color: #006600; font-weight:bold;">&#41;</span>-<span style="color: #800000;">1</span><br />
m_binItem.<span style="color: #9900cc;">Type</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">1</span><br />
m_binItem.<span style="color: #330066;">Open</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_binForm.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span>p_start<br />
lngFsiz<span style="color: #006600; font-weight: bold;">=</span>p_end-p_start-<span style="color: #800000;">2</span><br />
m_binForm.<span style="color: #9900cc;">CopyTo</span> m_binItem,lngFsiz<br />
<br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Instr</span><span style="color: #006600; font-weight:bold;">&#40;</span>intTemp,strItem,<span style="color: #cc0000;">&quot;filename=&quot;</span><span style="color: #cc0000;">&quot;&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #990099; font-weight: bold;">not</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_From&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
strFileItem<span style="color: #006600; font-weight: bold;">=</span>strFileItem<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strSplit<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strInam<br />
<span style="color: #990099; font-weight: bold;">if</span> m_binItem.<span style="color: #9900cc;">Size</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
intTemp<span style="color: #006600; font-weight: bold;">=</span>intTemp+<span style="color: #800000;">13</span><br />
strFtyp<span style="color: #006600; font-weight: bold;">=</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strItem,<span style="color: #330066;">Instr</span><span style="color: #006600; font-weight:bold;">&#40;</span>intTemp,strItem,<span style="color: #cc0000;">&quot;Content-Type: &quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span>+<span style="color: #800000;">14</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
strPuri<span style="color: #006600; font-weight: bold;">=</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strItem,intTemp,<span style="color: #330066;">Instr</span><span style="color: #006600; font-weight:bold;">&#40;</span>intTemp,strItem,<span style="color: #cc0000;">&quot;&quot;</span><span style="color: #cc0000;">&quot;&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span>-intTemp<span style="color: #006600; font-weight:bold;">&#41;</span><br />
intTemp<span style="color: #006600; font-weight: bold;">=</span>InstrRev<span style="color: #006600; font-weight:bold;">&#40;</span>strPuri,<span style="color: #cc0000;">&quot;\&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
strFnam<span style="color: #006600; font-weight: bold;">=</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strPuri,intTemp+<span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Type&quot;</span>,strFtyp<br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Name&quot;</span>,strFnam<br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Path&quot;</span>,Left<span style="color: #006600; font-weight:bold;">&#40;</span>strPuri,intTemp<span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Size&quot;</span>,lngFsiz<br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Instr</span><span style="color: #006600; font-weight:bold;">&#40;</span>strFnam,<span style="color: #cc0000;">&quot;.&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
strFext<span style="color: #006600; font-weight: bold;">=</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strFnam,InstrRev<span style="color: #006600; font-weight:bold;">&#40;</span>strFnam,<span style="color: #cc0000;">&quot;.&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span>+<span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
strFext<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;&quot;</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<br />
<span style="color: #990099; font-weight: bold;">select</span> <span style="color: #990099; font-weight: bold;">case</span> strFtyp<br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #cc0000;">&quot;image/jpeg&quot;</span>,<span style="color: #cc0000;">&quot;image/pjpeg&quot;</span>,<span style="color: #cc0000;">&quot;image/jpg&quot;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Lcase</span><span style="color: #006600; font-weight:bold;">&#40;</span>strFext<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;jpg&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFext<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;jpg&quot;</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">3</span><br />
<span style="color: #990099; font-weight: bold;">do</span> <span style="color: #990099; font-weight: bold;">while</span> <span style="color: #990099; font-weight: bold;">not</span> m_binItem.<span style="color: #9900cc;">EOS</span><br />
<span style="color: #990099; font-weight: bold;">do</span><br />
intTemp <span style="color: #006600; font-weight: bold;">=</span> Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">loop</span> <span style="color: #990099; font-weight: bold;">while</span> intTemp <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">255</span> <span style="color: #0000ff; font-weight: bold;">and</span> <span style="color: #990099; font-weight: bold;">not</span> m_binItem.<span style="color: #9900cc;">EOS</span><br />
<span style="color: #990099; font-weight: bold;">if</span> intTemp <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;</span> <span style="color: #800000;">192</span> <span style="color: #0000ff; font-weight: bold;">or</span> intTemp <span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span> <span style="color: #800000;">195</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_binItem.<span style="color: #9900cc;">read</span><span style="color: #006600; font-weight:bold;">&#40;</span>Bin2Val<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span>-<span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
Exit <span style="color: #990099; font-weight: bold;">do</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">do</span><br />
intTemp <span style="color: #006600; font-weight: bold;">=</span> Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">loop</span> <span style="color: #990099; font-weight: bold;">while</span> intTemp <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;</span> <span style="color: #800000;">255</span> <span style="color: #0000ff; font-weight: bold;">and</span> <span style="color: #990099; font-weight: bold;">not</span> m_binItem.<span style="color: #9900cc;">EOS</span><br />
<span style="color: #990099; font-weight: bold;">loop</span><br />
m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">3</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Height&quot;</span>,Bin2Val<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Width&quot;</span>,Bin2Val<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #cc0000;">&quot;image/gif&quot;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Lcase</span><span style="color: #006600; font-weight:bold;">&#40;</span>strFext<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;gif&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFext<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;gif&quot;</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">6</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Width&quot;</span>,BinVal2<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Height&quot;</span>,BinVal2<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #cc0000;">&quot;image/png&quot;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Lcase</span><span style="color: #006600; font-weight:bold;">&#40;</span>strFext<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;png&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFext<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;png&quot;</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">18</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Width&quot;</span>,Bin2Val<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Height&quot;</span>,Bin2Val<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #cc0000;">&quot;image/bmp&quot;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Lcase</span><span style="color: #006600; font-weight:bold;">&#40;</span>strFext<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;bmp&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFext<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;bmp&quot;</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">18</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Width&quot;</span>,BinVal2<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">4</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Height&quot;</span>,BinVal2<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">4</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #cc0000;">&quot;application/x-shockwave-flash&quot;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Lcase</span><span style="color: #006600; font-weight:bold;">&#40;</span>strFext<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;swf&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFext<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;swf&quot;</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">if</span> Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">70</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">8</span><br />
strTemp <span style="color: #006600; font-weight: bold;">=</span> Num2Str<span style="color: #006600; font-weight:bold;">&#40;</span>Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span> ,<span style="color: #800000;">8</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
intTemp <span style="color: #006600; font-weight: bold;">=</span> Str2Num<span style="color: #006600; font-weight:bold;">&#40;</span>Left<span style="color: #006600; font-weight:bold;">&#40;</span>strTemp, <span style="color: #800000;">5</span><span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
strTemp <span style="color: #006600; font-weight: bold;">=</span> Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strTemp, <span style="color: #800000;">6</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">while</span> <span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">Len</span><span style="color: #006600; font-weight:bold;">&#40;</span>strTemp<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;</span> intTemp <span style="color: #006600; font-weight: bold;">*</span> <span style="color: #800000;">4</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
strTemp <span style="color: #006600; font-weight: bold;">=</span> strTemp <span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span> Num2Str<span style="color: #006600; font-weight:bold;">&#40;</span>Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>m_binItem.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span> ,<span style="color: #800000;">8</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">wend</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Width&quot;</span>, <span style="color: #990099; font-weight: bold;">Int</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">Abs</span><span style="color: #006600; font-weight:bold;">&#40;</span>Str2Num<span style="color: #006600; font-weight:bold;">&#40;</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strTemp, intTemp + <span style="color: #800000;">1</span>, intTemp<span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span> - Str2Num<span style="color: #006600; font-weight:bold;">&#40;</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strTemp, <span style="color: #800000;">1</span>, intTemp<span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">/</span> <span style="color: #800000;">20</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Height&quot;</span>,<span style="color: #990099; font-weight: bold;">Int</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">Abs</span><span style="color: #006600; font-weight:bold;">&#40;</span>Str2Num<span style="color: #006600; font-weight:bold;">&#40;</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strTemp, <span style="color: #800000;">3</span> <span style="color: #006600; font-weight: bold;">*</span> intTemp + <span style="color: #800000;">1</span>, intTemp<span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span> - Str2Num<span style="color: #006600; font-weight:bold;">&#40;</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>strTemp, <span style="color: #800000;">2</span> <span style="color: #006600; font-weight: bold;">*</span> intTemp + <span style="color: #800000;">1</span>, intTemp<span style="color: #006600; font-weight:bold;">&#41;</span>, <span style="color: #800000;">2</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">/</span> <span style="color: #800000;">20</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">select</span><br />
<br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Ext&quot;</span>,strFext<br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_From&quot;</span>,p_start<br />
<span style="color: #990099; font-weight: bold;">if</span> m_AutoSave<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">2</span> <span style="color: #990099; font-weight: bold;">then</span><br />
intTemp<span style="color: #006600; font-weight: bold;">=</span>GetFerr<span style="color: #006600; font-weight:bold;">&#40;</span>lngFsiz,strFext<span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Err&quot;</span>,intTemp<br />
<span style="color: #990099; font-weight: bold;">if</span> intTemp<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_AutoSave<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
strFnam<span style="color: #006600; font-weight: bold;">=</span>GetTimeStr<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> strFext<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFnam<span style="color: #006600; font-weight: bold;">=</span>strFnam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;.&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strFext<br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
m_binItem.<span style="color: #9900cc;">SaveToFile</span> m_SavePath<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strFnam,<span style="color: #800000;">2</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam,strFnam<br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Err&quot;</span>,-<span style="color: #800000;">1</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
m_binItem.<span style="color: #9900cc;">Position</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
m_binItem.<span style="color: #9900cc;">Type</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">2</span><br />
m_binItem.<span style="color: #330066;">Charset</span><span style="color: #006600; font-weight: bold;">=</span>m_Charset<br />
strTemp<span style="color: #006600; font-weight: bold;">=</span>m_binItem.<span style="color: #9900cc;">ReadText</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>strInam<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>strInam<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">=</span> m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>strInam<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;,&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strTemp<br />
<span style="color: #990099; font-weight: bold;">else</span><br />
strFormItem<span style="color: #006600; font-weight: bold;">=</span>strFormItem<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strSplit<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strInam<br />
m_dicForm.<span style="color: #9900cc;">Add</span> strInam,strTemp<br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<br />
m_binItem.<span style="color: #330066;">Close</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
p_start <span style="color: #006600; font-weight: bold;">=</span> p_end+intSeparator+<span style="color: #800000;">2</span><br />
<span style="color: #990099; font-weight: bold;">loop</span> Until p_start+<span style="color: #800000;">3</span><span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span>lngRequestSize<br />
FormItem<span style="color: #006600; font-weight: bold;">=</span>Split<span style="color: #006600; font-weight:bold;">&#40;</span>strFormItem,strSplit<span style="color: #006600; font-weight:bold;">&#41;</span><br />
FileItem<span style="color: #006600; font-weight: bold;">=</span>Split<span style="color: #006600; font-weight:bold;">&#40;</span>strFileItem,strSplit<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<br />
<span style="color: #330066;">Open</span> <span style="color: #006600; font-weight: bold;">=</span> lngRequestSize<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> GetTimeStr<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_lngTime<span style="color: #006600; font-weight: bold;">=</span>m_lngTime+<span style="color: #800000;">1</span><br />
GetTimeStr<span style="color: #006600; font-weight: bold;">=</span>m_strDate<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>Right<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;00000000&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>m_lngTime,<span style="color: #800000;">8</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> GetFerr<span style="color: #006600; font-weight:bold;">&#40;</span>lngFsiz,strFext<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">dim</span> intFerr<br />
intFerr<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">if</span> lngFsiz<span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span>m_MaxSize <span style="color: #0000ff; font-weight: bold;">and</span> m_MaxSize<span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_Error<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span> <span style="color: #0000ff; font-weight: bold;">or</span> m_Error<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">2</span> <span style="color: #990099; font-weight: bold;">then</span> m_Error<span style="color: #006600; font-weight: bold;">=</span>m_Error+<span style="color: #800000;">1</span><br />
intFerr<span style="color: #006600; font-weight: bold;">=</span>intFerr+<span style="color: #800000;">1</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #330066;">Instr</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #800000;">1</span>,<span style="color: #330066;">LCase</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;/&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>m_FileType<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;/&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,<span style="color: #330066;">LCase</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #cc0000;">&quot;/&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strFext<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;/&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span> <span style="color: #0000ff; font-weight: bold;">and</span> m_FileType<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;&quot;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_Error<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">2</span> <span style="color: #990099; font-weight: bold;">then</span> m_Error<span style="color: #006600; font-weight: bold;">=</span>m_Error+<span style="color: #800000;">2</span><br />
intFerr<span style="color: #006600; font-weight: bold;">=</span>intFerr+<span style="color: #800000;">2</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
GetFerr<span style="color: #006600; font-weight: bold;">=</span>intFerr<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #0000ff; font-weight: bold;">Function</span> Save<span style="color: #006600; font-weight:bold;">&#40;</span>Item,strFnam<span style="color: #006600; font-weight:bold;">&#41;</span><br />
Save<span style="color: #006600; font-weight: bold;">=</span><span style="color: #0000ff; font-weight: bold;">false</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_From&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">dim</span> intFerr,strFext<br />
strFext<span style="color: #006600; font-weight: bold;">=</span>m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Ext&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
intFerr<span style="color: #006600; font-weight: bold;">=</span>GetFerr<span style="color: #006600; font-weight:bold;">&#40;</span>m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Size&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,strFext<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Err&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">if</span> intFerr<span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Err&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Err&quot;</span>,intFerr<br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">if</span> intFerr<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span> Exit <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<span style="color: #990099; font-weight: bold;">if</span> VarType<span style="color: #006600; font-weight:bold;">&#40;</span>strFnam<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #800000;">2</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">select</span> <span style="color: #990099; font-weight: bold;">case</span> strFnam<br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #800000;">0</span><span style="color: #006600; font-weight: bold;">:</span>strFnam<span style="color: #006600; font-weight: bold;">=</span>GetTimeStr<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> strFext<span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;&quot;</span> <span style="color: #990099; font-weight: bold;">then</span> strFnam<span style="color: #006600; font-weight: bold;">=</span>strFnam<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;.&quot;</span><span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strFext<br />
<span style="color: #990099; font-weight: bold;">case</span> <span style="color: #800000;">1</span><span style="color: #006600; font-weight: bold;">:</span>strFnam<span style="color: #006600; font-weight: bold;">=</span>m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Name&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">select</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
m_binItem.<span style="color: #9900cc;">Type</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">1</span><br />
m_binItem.<span style="color: #330066;">Open</span><br />
m_binForm.<span style="color: #9900cc;">Position</span> <span style="color: #006600; font-weight: bold;">=</span> m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_From&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_binForm.<span style="color: #9900cc;">CopyTo</span> m_binItem,m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Size&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
m_binItem.<span style="color: #9900cc;">SaveToFile</span> m_SavePath<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span>strFnam,<span style="color: #800000;">2</span><br />
m_binItem.<span style="color: #330066;">Close</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">=</span>strFnam<br />
<span style="color: #990099; font-weight: bold;">else</span><br />
m_dicForm.<span style="color: #9900cc;">Add</span> Item,strFnam<br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
Save<span style="color: #006600; font-weight: bold;">=</span><span style="color: #0000ff; font-weight: bold;">true</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #0000ff; font-weight: bold;">Function</span> GetData<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight:bold;">&#41;</span><br />
GetData<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;&quot;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_From&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #990099; font-weight: bold;">if</span> GetFerr<span style="color: #006600; font-weight:bold;">&#40;</span>m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Size&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Ext&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;&amp;</span>gt<span style="color: #006600; font-weight: bold;">;</span><span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">then</span> Exit <span style="color: #0000ff; font-weight: bold;">Function</span><br />
m_binForm.<span style="color: #9900cc;">Position</span> <span style="color: #006600; font-weight: bold;">=</span> m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_From&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
GetData <span style="color: #006600; font-weight: bold;">=</span> m_binForm.<span style="color: #9900cc;">Read</span><span style="color: #006600; font-weight:bold;">&#40;</span>m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span><span style="color: #cc0000;">&quot;_Size&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Public</span> <span style="color: #0000ff; font-weight: bold;">Function</span> <span style="color: #330066;">Form</span><span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">if</span> m_dicForm.<span style="color: #9900cc;">Exists</span><span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">then</span><br />
<span style="color: #330066;">Form</span><span style="color: #006600; font-weight: bold;">=</span>m_dicForm<span style="color: #006600; font-weight:bold;">&#40;</span>Item<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">else</span><br />
<span style="color: #330066;">Form</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;&quot;</span><br />
<span style="color: #990099; font-weight: bold;">end</span> <span style="color: #990099; font-weight: bold;">if</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> BinVal2<span style="color: #006600; font-weight:bold;">&#40;</span>bin<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">dim</span> lngValue,i<br />
lngValue <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">for</span> i <span style="color: #006600; font-weight: bold;">=</span> lenb<span style="color: #006600; font-weight:bold;">&#40;</span>bin<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">to</span> <span style="color: #800000;">1</span> step -<span style="color: #800000;">1</span><br />
lngValue <span style="color: #006600; font-weight: bold;">=</span> lngValue <span style="color: #006600; font-weight: bold;">*</span><span style="color: #800000;">256</span> + Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>midb<span style="color: #006600; font-weight:bold;">&#40;</span>bin,i,<span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">next</span><br />
BinVal2<span style="color: #006600; font-weight: bold;">=</span>lngValue<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> Bin2Val<span style="color: #006600; font-weight:bold;">&#40;</span>bin<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">dim</span> lngValue,i<br />
lngValue <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">for</span> i <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">1</span> <span style="color: #990099; font-weight: bold;">to</span> lenb<span style="color: #006600; font-weight:bold;">&#40;</span>bin<span style="color: #006600; font-weight:bold;">&#41;</span><br />
lngValue <span style="color: #006600; font-weight: bold;">=</span> lngValue <span style="color: #006600; font-weight: bold;">*</span><span style="color: #800000;">256</span> + Ascb<span style="color: #006600; font-weight:bold;">&#40;</span>midb<span style="color: #006600; font-weight:bold;">&#40;</span>bin,i,<span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">next</span><br />
Bin2Val<span style="color: #006600; font-weight: bold;">=</span>lngValue<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> Num2Str<span style="color: #006600; font-weight:bold;">&#40;</span>num, base, lens<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> ret,i<br />
ret <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #cc0000;">&quot;&quot;</span><br />
<span style="color: #990099; font-weight: bold;">while</span><span style="color: #006600; font-weight:bold;">&#40;</span>num <span style="color: #006600; font-weight: bold;">&amp;</span>gt<span style="color: #006600; font-weight: bold;">;=</span> base<span style="color: #006600; font-weight:bold;">&#41;</span><br />
i &nbsp; <span style="color: #006600; font-weight: bold;">=</span> num Mod base<br />
ret <span style="color: #006600; font-weight: bold;">=</span> i <span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span> ret<br />
num <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #006600; font-weight:bold;">&#40;</span>num - i<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">/</span> base<br />
<span style="color: #990099; font-weight: bold;">wend</span><br />
Num2Str <span style="color: #006600; font-weight: bold;">=</span> Right<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">String</span><span style="color: #006600; font-weight:bold;">&#40;</span>lens, <span style="color: #cc0000;">&quot;0&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span> num <span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span> ret, lens<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> Str2Num<span style="color: #006600; font-weight:bold;">&#40;</span>str, base<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">Dim</span> ret, i<br />
ret <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span><br />
<span style="color: #990099; font-weight: bold;">for</span> i <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">1</span> <span style="color: #990099; font-weight: bold;">to</span> <span style="color: #330066;">Len</span><span style="color: #006600; font-weight:bold;">&#40;</span>str<span style="color: #006600; font-weight:bold;">&#41;</span><br />
ret <span style="color: #006600; font-weight: bold;">=</span> ret <span style="color: #006600; font-weight: bold;">*</span> base + <span style="color: #990099; font-weight: bold;">Cint</span><span style="color: #006600; font-weight:bold;">&#40;</span>Mid<span style="color: #006600; font-weight:bold;">&#40;</span>str, i, <span style="color: #800000;">1</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">next</span><br />
Str2Num <span style="color: #006600; font-weight: bold;">=</span> ret<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">Private</span> <span style="color: #0000ff; font-weight: bold;">Function</span> AutoCreateFolder<span style="color: #006600; font-weight:bold;">&#40;</span>strPath<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">On</span> <span style="color: #990099; font-weight: bold;">Error</span> <span style="color: #990099; font-weight: bold;">Resume</span> <span style="color: #990099; font-weight: bold;">Next</span><br />
<span style="color: #990099; font-weight: bold;">If</span> <span style="color: #330066;">InStr</span><span style="color: #006600; font-weight:bold;">&#40;</span>strPath, <span style="color: #cc0000;">&quot;\&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;=</span><span style="color: #800000;">0</span> <span style="color: #0000ff; font-weight: bold;">or</span> <span style="color: #330066;">InStr</span><span style="color: #006600; font-weight:bold;">&#40;</span>strPath, <span style="color: #cc0000;">&quot;:&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">&amp;</span>lt<span style="color: #006600; font-weight: bold;">;=</span> <span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">Then</span><br />
strPath <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #990099; font-weight: bold;">Server</span>.<span style="color: #330066;">MapPath</span><span style="color: #006600; font-weight:bold;">&#40;</span>strPath<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #990099; font-weight: bold;">If</span><br />
<span style="color: #990099; font-weight: bold;">If</span> m_Fso.<span style="color: #9900cc;">FolderExists</span><span style="color: #006600; font-weight:bold;">&#40;</span>strPath<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">Then</span><br />
AutoCreateFolder <span style="color: #006600; font-weight: bold;">=</span> strPath<br />
Exit <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #990099; font-weight: bold;">If</span><br />
astrPath <span style="color: #006600; font-weight: bold;">=</span> Split<span style="color: #006600; font-weight:bold;">&#40;</span>strPath, <span style="color: #cc0000;">&quot;\&quot;</span><span style="color: #006600; font-weight:bold;">&#41;</span><br />
ulngPath <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #330066;">UBound</span><span style="color: #006600; font-weight:bold;">&#40;</span>astrPath<span style="color: #006600; font-weight:bold;">&#41;</span><br />
strTmpPath <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #cc0000;">&quot;&quot;</span><br />
<span style="color: #990099; font-weight: bold;">For</span> i <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #800000;">0</span> <span style="color: #990099; font-weight: bold;">To</span> ulngPath<br />
strTmpPath <span style="color: #006600; font-weight: bold;">=</span> strTmpPath <span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span> astrPath<span style="color: #006600; font-weight:bold;">&#40;</span>i<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight: bold;">&amp;</span>amp<span style="color: #006600; font-weight: bold;">;</span> <span style="color: #cc0000;">&quot;\&quot;</span><br />
<span style="color: #990099; font-weight: bold;">If</span> <span style="color: #990099; font-weight: bold;">Not</span> m_Fso.<span style="color: #9900cc;">FolderExists</span><span style="color: #006600; font-weight:bold;">&#40;</span>strTmpPath<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #990099; font-weight: bold;">Then</span><br />
m_Fso.<span style="color: #9900cc;">CreateFolder</span><span style="color: #006600; font-weight:bold;">&#40;</span>strTmpPath<span style="color: #006600; font-weight:bold;">&#41;</span><br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #990099; font-weight: bold;">If</span><br />
<span style="color: #990099; font-weight: bold;">Next</span><br />
AutoCreateFolder <span style="color: #006600; font-weight: bold;">=</span> strPath<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Function</span><br />
<br />
<span style="color: #990099; font-weight: bold;">End</span> <span style="color: #0000ff; font-weight: bold;">Class</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://ishere.cn/2008/12/01/%e9%a3%8e%e5%a3%b0%e6%97%a0%e7%bb%84%e4%bb%b6%e4%b8%8a%e4%bc%a0%e7%b1%bb%e4%bf%ae%e6%94%b9%e7%89%88.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
