{"id":11625,"date":"2023-09-24T13:27:35","date_gmt":"2023-09-24T05:27:35","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=11625"},"modified":"2024-05-05T12:31:49","modified_gmt":"2024-05-05T04:31:49","slug":"%e7%94%b5%e8%84%91%e5%be%ae%e4%bf%a1%e5%a4%9a%e5%bc%80%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=11625","title":{"rendered":"\u7535\u8111\u5fae\u4fe1\u591a\u5f00"},"content":{"rendered":"<p>\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5c06\u4e0b\u9762\u5185\u5bb9\u4fdd\u5b58\u8fdb\u53bb\uff0c\u7136\u540e\u6539\u6269\u5c55\u540d\u4e3a <strong>.bat<\/strong>\uff0c\u5176\u4e2d <strong>&quot;D:\\Program Files (x86)\\Tencent\\WeChat\\WeChat.exe&quot;<\/strong> \u8981\u6539\u4e3a\u81ea\u5df1\u7535\u8111\u5fae\u4fe1\u7684\u8def\u5f84\uff0c\u5728\u5fae\u4fe1\u56fe\u6807\u4e0a\u53f3\u952e\u5c5e\u6027\u91cc\u9762\u53ef\u4ee5\u770b\u5230\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/09\/image-1695533305735.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 112px; --smush-placeholder-aspect-ratio: 112\/122;\" \/><\/p>\n<pre><code class=\"language-bat\">@echo off\nsetlocal\nchcp 65001\n\nset &quot;processName=WeChat.exe&quot;\nset &quot;WeChatPath=D:\\Program Files (x86)\\Tencent\\WeChat\\WeChat.exe&quot; rem \u8fd9\u662f\u4e00\u4e2a\u6ce8\u91ca\uff0c\u8bf7\u66f4\u6362\u4e3a\u81ea\u5df1\u7535\u8111\u7684\u5fae\u4fe1\u6240\u5728\u8def\u5f84\n\ntasklist | findstr \/i &quot;%processName%&quot; &gt; nul\n\nif %errorlevel% equ 0 (\n    taskkill \/f \/im &quot;%processName%&quot;\n)\n\nset \/p loopCount=\u8bf7\u8f93\u5165\u8981\u6253\u5f00\u7684\u5fae\u4fe1\u4e2a\u6570\uff1a\n\nfor \/l %%i in (1,1,%loopCount%) do (\n  start &quot;&quot; &quot;%WeChatPath%&quot;\n)\n\nendlocal<\/code><\/pre>\n<p>\u53cc\u51fb\u8fd0\u884c\u5c31\u884c\uff0c\u53e6\u5916\u6ce8\u610f\u591a\u5f00\u65f6\u4e0d\u80fd\u6709\u5df2\u7ecf\u767b\u5f55\u7684\u5fae\u4fe1\uff0c\u6240\u4ee5\u811a\u672c\u91cc\u5199\u4e86\u6740\u6b7b\u6b63\u5728\u8fd0\u884c\u7684\u5fae\u4fe1\u8fdb\u7a0b\uff0c\u5982\u679c\u6709\u6b63\u5728\u7f16\u8f91\u7684\u6d88\u606f\u7684\u8bf7\u6ce8\u610f\u3002<\/p>\n<p>\u53cc\u51fb\u8fd0\u884c\u540e\uff0c\u8f93\u5165\u8981\u6253\u5f00\u7684\u5fae\u4fe1\u4e2a\u6570\uff1a<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/09\/image-1695533066739.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 380px; --smush-placeholder-aspect-ratio: 380\/126;\" \/><\/p>\n<p>\u5206\u522b\u626b\u7801\u767b\u5f55\u5c31\u884c<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/09\/image-1695533156997.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1127px; --smush-placeholder-aspect-ratio: 1127\/382;\" \/><\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2023\/09\/image-1695533235941.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 810px; --smush-placeholder-aspect-ratio: 810\/652;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u5c06\u4e0b\u9762\u5185\u5bb9\u4fdd\u5b58\u8fdb\u53bb\uff0c\u7136\u540e\u6539\u6269\u5c55\u540d\u4e3a .bat\uff0c\u5176\u4e2d &quot;D:\\Program Fil [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1],"tags":[],"class_list":["post-11625","post","type-post","status-publish","format-standard","hentry","category-all"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/11625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11625"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/11625\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}