{"id":4023,"date":"2014-02-17T10:45:39","date_gmt":"2014-02-17T01:45:39","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4023"},"modified":"2014-02-17T10:45:39","modified_gmt":"2014-02-17T01:45:39","slug":"%e5%ae%9f%e8%a1%8c%e4%b8%ad%e3%81%ae%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e4%b8%80%e8%a6%a7%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8bvbscript","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4023","title":{"rendered":"\u5b9f\u884c\u4e2d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308bVBScript"},"content":{"rendered":"<p>\u300c<em>VBS \u30a2\u30d7\u30ea\u4e00\u89a7 \u51fa\u529b<\/em>\u300d\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3067\u306e\u8a2a\u554f\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u5b9f\u884c\u4e2d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308b\u7c21\u5358\u306a\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nDim item, items\r\n\r\nWScript.Echo &quot;Name,ExecutablePath,Description&quot; '\u898b\u51fa\u3057\r\nOn Error Resume Next\r\nSet items = CreateObject(&quot;WbemScripting.SWbemLocator&quot;) _ \r\n            .ConnectServer.ExecQuery(&quot;Select * From Win32_Process&quot;)\r\nFor Each item In items\r\n  WScript.Echo item.Name &amp; &quot;,&quot; &amp; item.ExecutablePath &amp; &quot;,&quot; &amp; item.Description\r\nNext\r\nOn Error GoTo 0<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306fWMI\u306e<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/aa394372.aspx\" title=\"Win32_Process class (Windows)\" target=\"_blank\">Win32_Process\u30af\u30e9\u30b9<\/a>\u3092\u5229\u7528\u3057\u305f\u3082\u306e\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u7d50\u679c\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">C:\\Files&gt;cscript ProcessList.vbs \/\/NoLogo &gt; ProcessList.log<\/pre>\n","protected":false},"excerpt":{"rendered":"\u300cVBS \u30a2\u30d7\u30ea\u4e00\u89a7 \u51fa\u529b\u300d\u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3067\u306e\u8a2a\u554f\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u5b9f\u884c\u4e2d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\u3092\u51fa\u529b\u3059\u308b\u7c21\u5358\u306a\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002 Option Explicit Dim item, items WScript.E [&hellip;]","protected":false},"author":1,"featured_media":7132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":[6],"tags":[],"class_list":["post-4023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vbs"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-VBScript.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-12T","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4023"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4023\/revisions"}],"predecessor-version":[{"id":4025,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4023\/revisions\/4025"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7132"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}