{"id":65,"date":"2001-09-05T22:31:29","date_gmt":"2001-09-05T22:31:29","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2001\/09\/05\/windows-script-component-%e8%88%87-nt2000-%e7%9a%84%e5%ae%89%e5%85%a8\/"},"modified":"2001-09-05T22:31:29","modified_gmt":"2001-09-05T22:31:29","slug":"windows-script-component-%e8%88%87-nt2000-%e7%9a%84%e5%ae%89%e5%85%a8","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2001\/09\/windows-script-component-%e8%88%87-nt2000-%e7%9a%84%e5%ae%89%e5%85%a8\/","title":{"rendered":"Windows Script Component \u8207 NT\/2000 \u7684\u5b89\u5168"},"content":{"rendered":"<p>\u6458\u8981:\u8aaa\u660e Windows Script Component \u8207 NT\/2000 \u6a94\u6848\u5b89\u5168\u7684\u95dc\u4fc2<\/p>\n<p>\u5167\u5bb9:<\/p>\n<p><a href=\"#HowToInstall\">\u8aaa\u660e<\/a><br \/>\n<a href=\"#Reference\">\u53c3\u8003<\/a><\/p>\n<p>\n\u4e0b\u8f09\u672c\u6587\u7ae0\u7684<a href=\"files\/asptable.zip\">\u7bc4\u4f8b\u7a0b\u5f0f<\/a>(\u4e0b\u8f09\u5f8c\u4ee5\u6ed1\u9f20\u53f3\u9375\u9ede\u9078,\u7136\u5f8c\u9078\u64c7\u8a3b\u518a\u5373\u53ef)<\/p>\n<p><a name=\"HowToInstall\"><\/a><b>\u8aaa\u660e<\/b><\/p>\n<p>\u524d\u4e8c\u65e5,\u6211\u5728\u4f7f\u7528WSC(Windows Script Component)\u7684\u6642\u5019,\u767c\u73fe\u4e86\u5f88\u8a6d\u7570\u7684\u4e8b\u60c5.<\/p>\n<p>\u9019\u500b\u5143\u4ef6\u4e0d\u7ba1\u662f\u5229\u7528VB\u6216\u662f\u5229\u7528Windows Script Host\u547c\u53eb,\u90fd\u662f\u6b63\u5e38\u800c\u4e14\u53ef\u4ee5\u904b\u4f5c\u7684.<\/p>\n<p>\u4f46\u662f\u5728 ASP \u4e2d,\u537b\u59cb\u7d42\u7121\u6cd5\u4f7f\u7528, \u6211\u70ba\u4e86\u9019\u500b\u554f\u984c,\u641e\u4e86\u5169\u500b\u591a\u5c0f\u6642,\u624d\u7d42\u65bc\u641e\u61c2,\u9019\u500b\u6a94\u6848\u7684\u5b89\u5168\u6b0a\u9650\u5fc5\u9808\u8981\u52a0\u5165IUSR_XXXX(IIS\u8a2a\u5ba2)\u9019\u500b\u4f7f\u7528\u8005\u624d\u884c!<\/p>\n<p>\u5509\u5509\u5509~~<\/p>\n<p>\u771f\u662f\u96e3\u641e\u7684\u8981\u547d,\u5982\u679c\u5404\u4f4d\u6709\u9047\u5230\u96e3\u89e3\u7684\u554f\u984c,\u4e0d\u59a8\u6aa2\u67e5\u4e00\u4e0b\u8cc7\u6599\u593e\u4ee5\u53ca\u6a94\u6848\u7684\u5b89\u5168\u6b0a\u9650,\u4e5f\u8a31\u5c31\u80fd\u8fce\u5203\u800c\u89e3\u4e86.<\/p>\n<p>\u547c~~<\/p>\n<p>\u4e0a\u9762\u6709\u63d0\u5230 WSC, \u6211\u5728\u9019\u88e1\u4e5f\u9806\u4fbf\u8aaa\u660e\u4e00\u4e0b, WSC \u662f Microsoft \u63d0\u51fa\u7684\u4e00\u500b\u8207 Script \u76f8\u95dc\u7684\u6280\u8853,\u5b83\u8b93\u6211\u5011\u53ef\u4ee5\u5229\u7528 Script<br \/>\n\u4f86\u64b0\u5bebCOM\u7684\u5143\u4ef6,\u4f60\u53ef\u4ee5\u53c3\u8003<a href=\"http:\/\/www.microsoft.com\/taiwan\/products\/develop\/scripting\/\">http:\/\/www.microsoft.com\/taiwan\/products\/develop\/scripting\/<\/a>,\u9019\u88e1\u6709\u8a31\u591a\u8207<br \/>\nScript \u76f8\u95dc\u7684\u6280\u8853\u6587\u4ef6.<\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u6240\u9644\u7684\u7bc4\u4f8b\u5247\u662f\u4f86\u81ea Active Server Pages 3.0 \u6df1\u5ea6\u63a2\u7d22\u4e00\u66f8\u4e2d\u7684\u7bc4\u4f8b,\u4e3b\u8981\u7684\u7528\u8655\u662f\u7d50\u5408Recordset\u4f86\u7522\u751f\u4e00\u500b\u8868\u683c,\u4f7f\u7528\u65b9\u6cd5\u5f88\u7c21\u55ae:<\/p>\n<p>dim objtbl<br \/>\nset objtbl = server.createobject(&quot;asptable.wsc&quot;)<br \/>\nobjtbl.addcolumn &quot;\u54e1\u5de5\u7de8\u865f&quot;,&quot;emp_no&quot;,&quot;&quot;<br \/>\nobjtbl.addcolumn &quot;\u54e1\u5de5\u59d3\u540d&quot;,&quot;emp_name&quot;, &quot;&quot;<br \/>\nobj.gettext()<\/p>\n<p>\u4e0d\u904e\u6211\u6539\u5beb\u904e\u4e86,\u589e\u52a0\u4e86\u5169\u500b\u65b9\u6cd5,\u4e00\u500b\u65b9\u6cd5\u662fgetpagetext(pageno),\u53ef\u4ee5\u5f97\u5230\u7b2c\u5e7e\u9801\u7684Table;\u53e6\u4e00\u500b\u5247\u662fobj.getstrtext(),\u53d6\u5f97\u6574\u500btable\u7684html\u5b57\u4e32.<\/p>\n<p>\u7576\u7136\u9019\u88e1\u5beb\u7684\u9084\u4e0d\u662f\u6e05\u695a,\u4ee5\u5f8c\u518d\u4f86\u88dc\u5427 ^_^<\/p>\n<p><a name=\"Reference\"><\/a><b>\u53c3\u8003<\/b><\/p>\n<p>Active Server Pages 3.0 \u6df1\u5ea6\u63a2\u7d22(\u570b\u5916\u51fa\u7248\u793eWrox,\u570b\u5167\u5247\u662f\u7531\u7881\u5cf0\u7ffb\u8b6f\u5f8c\u767c\u884c)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981:\u8aaa\u660e Windows Script Component \u8207 NT\/2000 \u6a94\u6848\u5b89\u5168\u7684\u95dc\u4fc2 \u5167\u5bb9: \u8aaa\u660e \u53c3\u8003 \u4e0b\u8f09\u672c\u6587\u7ae0\u7684\u7bc4\u4f8b\u7a0b\u5f0f(\u4e0b\u8f09\u5f8c\u4ee5\u6ed1\u9f20\u53f3\u9375\u9ede\u9078,\u7136\u5f8c\u9078\u64c7\u8a3b\u518a\u5373\u53ef) \u8aaa\u660e \u524d\u4e8c\u65e5,\u6211\u5728\u4f7f\u7528WSC(Windows Script Component)\u7684\u6642\u5019,\u767c\u73fe\u4e86\u5f88\u8a6d\u7570\u7684\u4e8b\u60c5. \u9019\u500b\u5143\u4ef6\u4e0d\u7ba1\u662f\u5229\u7528VB\u6216\u662f\u5229\u7528Windows Script Host\u547c\u53eb,\u90fd\u662f\u6b63\u5e38\u800c\u4e14\u53ef\u4ee5\u904b\u4f5c\u7684. \u4f46\u662f\u5728 ASP \u4e2d,\u537b\u59cb\u7d42\u7121\u6cd5\u4f7f\u7528, \u6211\u70ba\u4e86\u9019\u500b\u554f\u984c,\u641e\u4e86\u5169\u500b\u591a\u5c0f\u6642,\u624d\u7d42\u65bc\u641e\u61c2,\u9019\u500b\u6a94\u6848\u7684\u5b89\u5168\u6b0a\u9650\u5fc5\u9808\u8981\u52a0\u5165IUSR_XXXX(IIS\u8a2a\u5ba2)\u9019\u500b\u4f7f\u7528\u8005\u624d\u884c! \u5509\u5509\u5509~~ \u771f\u662f\u96e3\u641e\u7684\u8981\u547d,\u5982\u679c\u5404\u4f4d\u6709\u9047\u5230\u96e3\u89e3\u7684\u554f\u984c,\u4e0d\u59a8\u6aa2\u67e5\u4e00\u4e0b\u8cc7\u6599\u593e\u4ee5\u53ca\u6a94\u6848\u7684\u5b89\u5168\u6b0a\u9650,\u4e5f\u8a31\u5c31\u80fd\u8fce\u5203\u800c\u89e3\u4e86. \u547c~~ \u4e0a\u9762\u6709\u63d0\u5230 WSC, \u6211\u5728\u9019\u88e1\u4e5f\u9806\u4fbf\u8aaa\u660e\u4e00\u4e0b, WSC \u662f Microsoft \u63d0\u51fa\u7684\u4e00\u500b\u8207 Script \u76f8\u95dc\u7684\u6280\u8853,\u5b83\u8b93\u6211\u5011\u53ef\u4ee5\u5229\u7528 Script \u4f86\u64b0\u5bebCOM\u7684\u5143\u4ef6,\u4f60\u53ef\u4ee5\u53c3\u8003http:\/\/www.microsoft.com\/taiwan\/products\/develop\/scripting\/,\u9019\u88e1\u6709\u8a31\u591a\u8207 Script \u76f8\u95dc\u7684\u6280\u8853\u6587\u4ef6. \u672c\u7bc7\u6587\u7ae0\u6240\u9644\u7684\u7bc4\u4f8b\u5247\u662f\u4f86\u81ea Active Server Pages 3.0 \u6df1\u5ea6\u63a2\u7d22\u4e00\u66f8\u4e2d\u7684\u7bc4\u4f8b,\u4e3b\u8981\u7684\u7528\u8655\u662f\u7d50\u5408Recordset\u4f86\u7522\u751f\u4e00\u500b\u8868\u683c,\u4f7f\u7528\u65b9\u6cd5\u5f88\u7c21\u55ae: dim objtbl set objtbl = server.createobject(&quot;asptable.wsc&quot;) objtbl.addcolumn &quot;\u54e1\u5de5\u7de8\u865f&quot;,&quot;emp_no&quot;,&quot;&quot; objtbl.addcolumn &quot;\u54e1\u5de5\u59d3\u540d&quot;,&quot;emp_name&quot;, &quot;&quot; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2001\/09\/windows-script-component-%e8%88%87-nt2000-%e7%9a%84%e5%ae%89%e5%85%a8\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Windows Script Component \u8207 NT\/2000 \u7684\u5b89\u5168&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-idea"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-13","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}