{"id":604,"date":"2010-07-16T12:24:24","date_gmt":"2010-07-16T04:24:24","guid":{"rendered":""},"modified":"2014-03-11T22:32:05","modified_gmt":"2014-03-11T14:32:05","slug":"asp%e7%bb%8f%e5%85%b8%e4%bb%a3%e7%a0%81%e6%96%87%e4%bb%b6%e5%a4%b9%e9%87%8d%e5%91%bd%e5%90%8d","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2010\/07\/16\/604.htm","title":{"rendered":"ASP\u7ecf\u5178\u4ee3\u7801,\u6587\u4ef6\u5939\u91cd\u547d\u540d"},"content":{"rendered":"<p>&lt;%<\/p>\n<p>Name1=&quot;\u539f\u6587\u4ef6\u540d&quot;<br \/>\nName2=&quot;\u76ee\u6807\u6587\u4ef6\u540d&quot;<\/p>\n<p>if Name1&lt;&gt;&quot;&quot; and Name2&lt;&gt;&quot;&quot; then<\/p>\n<p>Sub RenameFolder(ByVal strFolderPath, ByVal strNewName)<\/p>\n<p>Dim objFileSystem<br \/>\nSet objFileSystem=Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)<\/p>\n<p>&#8216; \u5982\u679c\u8def\u5f84\u4e0d\u5305\u542b\u5192\u53f7, \u5219\u8ba4\u4e3a strFolderPath \u662f\u865a\u62df\u8def\u5f84.<br \/>\n&#8216; \u6545\u8c03\u7528 Server.MapPath() \u65b9\u6cd5\u5c06\u6b64\u8def\u5f84\u8f6c\u4e3a\u7edd\u5bf9\u8def\u5f84<br \/>\nIf Instr(1,strFolderPath,&quot;:&quot;)=-1 Then<br \/>\nstrFolderPath=Server.MapPath(strFolderPath)<br \/>\nEnd If<\/p>\n<p>Dim objFolder<br \/>\nSet objFolder=objFileSystem.GetFolder(strFolderPath)<br \/>\nobjFolder.Name=strNewName<\/p>\n<p>Set objFolder=nothing<br \/>\nSet objFileSystem=nothing<\/p>\n<p>End Sub<\/p>\n<p>RenameFolder Server.MapPath(Name1),Name2<br \/>\nresponse.write &quot;\u5df2\u7ecf\u6210\u529f\u5730\u628a &quot;+Name1+&quot; \u66f4\u540d\u4e3a &quot;+Name2+&quot; \uff01&quot;<\/p>\n<p>end if<\/p>\n<p>%&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;% Name1=&quot;\u539f\u6587\u4ef6\u540d&quot; Name2=&quot;\u76ee\u6807\u6587\u4ef6\u540d&quot; if Name1&lt;&gt;&quot;&quot; and Name2&lt;&gt;&quot;&quot; then Sub&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=604"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":66445,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/604\/revisions\/66445"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=604"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}