{"id":2140,"date":"2020-10-28T15:03:58","date_gmt":"2020-10-28T06:03:58","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2140"},"modified":"2020-10-28T15:03:58","modified_gmt":"2020-10-28T06:03:58","slug":"post-2140","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/10\/28\/post-2140\/","title":{"rendered":"\u3010VBScript(WSH)\u3011\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306f\u3001\u60aa\u8cea\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u70ba\u3001\u30a6\u30a3\u30eb\u30b9\u5bfe\u7b56\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3088\u308a\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002"},"content":{"rendered":"<h2>\u3010VBScript(WSH)\u3011\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306f\u3001\u60aa\u8cea\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u70ba\u3001\u30a6\u30a3\u30eb\u30b9\u5bfe\u7b56\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3088\u308a\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2141\" data-permalink=\"https:\/\/qol-kk.com\/wp2\/blog\/2020\/10\/28\/post-2140\/image-21\/\" data-orig-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/10\/image-1.png\" data-orig-size=\"410,226\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"VBSCRIPT\u30e1\u30c3\u30bb\u30fc\u30b8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/10\/image-1.png\" class=\"alignnone size-full wp-image-2141\" src=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/10\/image-1.png\" alt=\"\" width=\"410\" height=\"226\" srcset=\"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/10\/image-1.png 410w, https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/10\/image-1-300x165.png 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/p>\n<p>\u7d44\u3093\u3067\u3044\u305f\u81ea\u52d5\u5316\u30b7\u30b9\u30c6\u30e0\u3067\u3053\u3093\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u591a\u5206script\u3067\u30eb\u30fc\u30d7\u9589\u3058\u5fd8\u308c\u3068\u304b\u3042\u3063\u3066\u3053\u3093\u306a\u306e\u304c\u51fa\u3066\u308b\u3093\u3060\u308d\u3046\u3068\u601d\u3044\u898b\u76f4\u3059\u3082\u539f\u56e0\u4e0d\u660e\u3002<br \/>\n\u6700\u7d42\u7684\u306b\u5224\u660e\u3057\u305f\u7406\u7531\u304c\u300c\u3048\u3063\uff1f\u300d\u3068\u3044\u3046\u5185\u5bb9\u3060\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u306b\u8a18\u3057\u3068\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u5224\u660e\u3057\u305f\u539f\u56e0\u306f\u30bf\u30a4\u30d7\u30df\u30b9<\/h3>\n<p>\u25bc\u30a8\u30e9\u30fc\u306e\u51fa\u305f\u30b9\u30af\u30ea\u30d7\u30c8<\/p>\n<pre class=\"lang:default decode:true\">'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n'\u5171\u901a\u51e6\u7406 \u203bAmazon\u9650\u5b9a\u4ed5\u69d8\r\n'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\nOption Explicit\r\n  '-----------------------------------------------------\r\n  '\u540d\u524d\u3092\u4ed8\u3051\u3066\u4fdd\u5b58 Edge\/Chrome\u7528\r\n  '-----------------------------------------------------\r\n  Function saveAsAmaChrome(filName,dirName)\r\n   Dim i\r\n   Dim onjShell\r\n   Dim textClip : Set textClip = CreateObject(\"WScript.Shell\")\r\n   \r\n   '2\u30d0\u30a4\u30c8\u6587\u5b57\u5165\u308c\u7528 \u203b\u30b3\u30de\u30f3\u30c9\u306b\u66f8\u3044\u3066\u30b3\u30d4\u30fc\r\n   textClip.Run \"cmd.exe \/c Echo \"&amp;dirName&amp;\" | Clip\", 0, True\r\n   \r\n   '\u4fdd\u5b58\u64cd\u4f5c\r\n   Set onjShell = WScript.CreateObject (\"WScript.Shell\")\r\n   If Err.Number &lt;&gt; 0 Then\r\n     createErrorLog fileDirectory\r\n   Else\r\n     WScript.Sleep 2000\r\n     onjShell .SendKeys(filName)\r\n       WScript.Sleep 1000\r\n     'Tab\u53cd\u5fdc\u30ba\u30ec\u9632\u6b62\u7b56\r\n     onjShell .SendKeys( \"^f\" )\r\n       WScript.Sleep 500\r\n     onjShell .SendKeys( \"+{TAB}\" )\r\n       WScript.Sleep 500\r\n     \r\n     '\u4fdd\u5b58\u4f5c\u696d\r\n     onjShell .SendKeys( \"{ENTER}\" )\r\n       WScript.Sleep 5000\r\n     textClip.SendKeys( \"^v\" )\r\n       WScript.Sleep 500\r\n     onjShell .SendKeys( \"{ENTER}\" )\r\n       WScript.Sleep 500\r\n     onjShell .SendKeys( \"%s\" )\r\n       WScript.Sleep 5000\r\n   End If\r\n   \r\n    Set i = Nothing\r\n    Set onjShell = Nothing\r\n    Set textClip = Nothing\r\n    \r\n  End Function\r\n\r\n '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n '\u5171\u901a\u51e6\u7406\r\n '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n '-----------------------------------------------------\r\n '\u5916\u90e8 Function \u8aad\u8fbc\u6e96\u5099\u3000\u2193\u547c\u3073\u51fa\u3057\u65b9\r\n '-----------------------------------------------------\r\n  Function Include(strFile)\r\n\t'strFile\uff1a\u8aad\u307f\u8fbc\u3080vbs\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\r\n\r\n\tDim objFso, objWsh, strPath\r\n\tSet objFso = Wscript.CreateObject(\"Scripting.FileSystemObject\")\r\n\t\r\n\t'\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\r\n\tSet objWsh = objFso.OpenTextFile(strFile)\r\n\tExecuteGlobal objWsh.ReadAll()\r\n\tobjWsh.Close\r\n\r\n\tSet objWsh = Nothing\r\n\tSet objFso = Nothing\r\n\r\n End Function<\/pre>\n<p>objShell\u00a0 \u3068\u66f8\u3053\u3046\u3068\u3057\u305f\u3089\u96a3\u306e \u3010n\u3011\u3092\u62bc\u3057\u3066\u3057\u307e\u3044 onjShell \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5909\u6570\u5ba3\u8a00\u3057\u3066\u305d\u308c\u3092\u4f7f\u3048\u3070\u554f\u984c\u306a\u3044\u3068\u5224\u65ad\u3057\u3066\u3001(\u9762\u5012\u81ed\u304c\u3063\u3066)onjShell\u306e\u307e\u307e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u305f\u3002<br \/>\n\u6700\u5f8c\u306b\u3061\u3083\u3093\u3068Nothing\u3067\u521d\u671f\u5316\u3082\u3057\u3066\u300c\u3053\u308c\u3067\u554f\u984c\u306a\u3044\u306f\u305a\u300d\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u539f\u56e0\u306f\u3053\u306e\u3010onjShell\u3011\u3067\u3057\u305f\u3002<\/p>\n<h3>objShell\u306b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u305a\u51e6\u7406\u3055\u308c\u308b<\/h3>\n<p>\u4e0b\u306e\u69d8\u306b\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002\u5909\u66f4\u7b87\u6240\u306f\u30bf\u30a4\u30d7\u30df\u30b9\u306e onjShell \u3092 objShell \u306b\u5909\u3048\u305f\u3060\u3051\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3060\u3051\u3067\u3001\u30a8\u30e9\u30fc\u306f\u767a\u751f\u305b\u305a\u306b\u52d5\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n'\u5171\u901a\u51e6\u7406 \u203bAmazon\u9650\u5b9a\u4ed5\u69d8\r\n'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\nOption Explicit\r\n  '-----------------------------------------------------\r\n  '\u540d\u524d\u3092\u4ed8\u3051\u3066\u4fdd\u5b58 Edge\/Chrome\u7528\r\n  '-----------------------------------------------------\r\n  Function saveAsAmaChrome(filName,dirName)\r\n   Dim i\r\n   Dim objShell\r\n   Dim textClip : Set textClip = CreateObject(\"WScript.Shell\")\r\n   \r\n   '2\u30d0\u30a4\u30c8\u6587\u5b57\u5165\u308c\u7528 \u203b\u30b3\u30de\u30f3\u30c9\u306b\u66f8\u3044\u3066\u30b3\u30d4\u30fc\r\n   textClip.Run \"cmd.exe \/c Echo \"&amp;dirName&amp;\" | Clip\", 0, True\r\n   \r\n   '\u4fdd\u5b58\u64cd\u4f5c\r\n   Set onjShell = WScript.CreateObject (\"WScript.Shell\")\r\n   If Err.Number &lt;&gt; 0 Then\r\n     createErrorLog fileDirectory\r\n   Else\r\n     WScript.Sleep 2000\r\n     objShell .SendKeys(filName)\r\n       WScript.Sleep 1000\r\n     'Tab\u53cd\u5fdc\u30ba\u30ec\u9632\u6b62\u7b56\r\n     objShell .SendKeys( \"^f\" )\r\n       WScript.Sleep 500\r\n     objShell .SendKeys( \"+{TAB}\" )\r\n       WScript.Sleep 500\r\n     \r\n     '\u4fdd\u5b58\u4f5c\u696d\r\n     objShell .SendKeys( \"{ENTER}\" )\r\n       WScript.Sleep 5000\r\n     textClip.SendKeys( \"^v\" )\r\n       WScript.Sleep 500\r\n     objShell .SendKeys( \"{ENTER}\" )\r\n       WScript.Sleep 500\r\n     objShell .SendKeys( \"%s\" )\r\n       WScript.Sleep 5000\r\n   End If\r\n   \r\n    Set i = Nothing\r\n    Set objShell = Nothing\r\n    Set textClip = Nothing\r\n    \r\n  End Function\r\n\r\n '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n '\u5171\u901a\u51e6\u7406\r\n '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n '-----------------------------------------------------\r\n '\u5916\u90e8 Function \u8aad\u8fbc\u6e96\u5099\u3000\u2193\u547c\u3073\u51fa\u3057\u65b9\r\n '-----------------------------------------------------\r\n  Function Include(strFile)\r\n\t'strFile\uff1a\u8aad\u307f\u8fbc\u3080vbs\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\r\n\r\n\tDim objFso, objWsh, strPath\r\n\tSet objFso = Wscript.CreateObject(\"Scripting.FileSystemObject\")\r\n\t\r\n\t'\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\r\n\tSet objWsh = objFso.OpenTextFile(strFile)\r\n\tExecuteGlobal objWsh.ReadAll()\r\n\tobjWsh.Close\r\n\r\n\tSet objWsh = Nothing\r\n\tSet objFso = Nothing\r\n\r\n End Function<\/pre>\n<p>\u3046\u30fc\u3093...\u3002\u5909\u6570\u5ba3\u8a00\u3057\u3066\u3066\u3082\u30c0\u30e1\u306a\u306e\u304b\u3041\u3002<br \/>\n\u4e88\u60f3\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3068\u3066\u3082\u9762\u55b0\u3044\u307e\u3057\u305f\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>VBScript\u304c\u4e3b\u6226\u5834\u306a\u4eba\u306f\u3059\u3050\u6c17\u3065\u304f\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>\u3053\u306e\u539f\u56e0\u306f\u610f\u8868\u3092\u7a81\u304b\u308c\u904e\u304e\u3066\u30c1\u30e7\u30c3\u30c8\u7d0d\u5f97\u3044\u3063\u3066\u306a\u3044\u3068\u3044\u3046\u306d\u3002<\/p>\n<p>\u306a\u3093\u3060\u304b\u306a\u3041\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010VBScript(WSH)\u3011\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306f\u3001\u60aa\u8cea\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u70ba\u3001\u30a6\u30a3\u30eb\u30b9\u5bfe\u7b56\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3088\u308a\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u7d44\u3093\u3067\u3044\u305f\u81ea\u52d5\u5316\u30b7\u30b9\u30c6\u30e0\u3067\u3053\u3093\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 \u591a\u5206scrip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1923,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[689],"tags":[685,746,145,684,97,53,188,67,68],"class_list":["post-2140","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wsh-vbs","tag-vbs","tag-vbscript","tag-windows10","tag-wsh","tag-97","tag-53","tag-188","tag-67","tag-68"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/09\/image.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2140"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2140\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/1923"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}