{"id":361375,"date":"2021-02-21T18:04:20","date_gmt":"2021-02-21T10:04:20","guid":{"rendered":"http:\/\/4563.org\/?p=361375"},"modified":"2021-03-06T12:41:58","modified_gmt":"2021-03-06T04:41:58","slug":"%e5%a6%82%e4%bd%95%e7%bc%96%e5%86%99%e4%b8%aa-bat-%e8%84%9a%e6%9c%ac%ef%bc%8c%e5%88%a4%e6%96%ad%e5%bd%93%e5%89%8d%e7%ac%94%e8%ae%b0%e6%9c%ac%e6%98%af%e4%bd%bf%e7%94%a8%e7%94%b5%e6%ba%90%e8%bf%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=361375","title":{"rendered":"\u5982\u4f55\u7f16\u5199\u4e2a bat \u811a\u672c\uff0c\u5224\u65ad\u5f53\u524d\u7b14\u8bb0\u672c\u662f\u4f7f\u7528\u7535\u6e90\u8fd8\u662f\u7535\u6c60\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u7f16\u5199\u4e2a bat \u811a\u672c\uff0c\u5224\u65ad\u5f53\u524d\u7b14\u8bb0\u672c\u662f\u4f7f\u7528\u7535\u6e90\u8fd8\u662f\u7535\u6c60\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JeffyChen <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u60f3\u6839\u636e\u4f7f\u7528\uff0c\u4f7f\u7528\u7535\u6c60\u8fd8\u662f\u7535\u6e90\uff0c\u6765\u4f7f windows \u542f\u52a8\u65f6\u81ea\u52a8\u542f\u52a8\u4e00\u4e9b\u5de5\u5177\u8f6f\u4ef6 \u5982\u4f55\u7f16\u5199\u4e2a bat \u811a\u672c\uff0c\u5224\u65ad\u5f53\u524d\u7b14\u8bb0\u672c\u662f\u4f7f\u7528\u7535\u6e90\u8fd8\u662f\u7535\u6c60\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5415803\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luzemin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             PowerShell : Get-CimInstance -ClassName Win32_Battery                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5415804\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b80\u5355\u641c\u7d22\u5c31\u6709<br \/>https:\/\/stackoverflow.com\/questions\/7355331\/check-if-computer-is-plugged-into-ac-power-in-batch-file                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5415805\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CallMeReznov <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             bat \u7684\u8bdd,\u8c03\u7528 wmi \u53ef\u4ee5\u5224\u65ad<\/p>\n<p>\u524d\u51e0\u5929\u6b63\u597d\u7528 c#\u5199\u4e86\u4e2a\u65ad\u7535\u7136\u540e\u7528 adb \u6253\u7535\u8bdd\u7684<br \/>\u5c31\u662f\u4f7f\u7528 SystemInformation.PowerStatus.PowerLineStatus \u5224\u65ad<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/03\/f376e3LZ.png\" alt=\"\u5982\u4f55\u7f16\u5199\u4e2a bat \u811a\u672c\uff0c\u5224\u65ad\u5f53\u524d\u7b14\u8bb0\u672c\u662f\u4f7f\u7528\u7535\u6e90\u8fd8\u662f\u7535\u6c60\uff1f\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5415806\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ji39 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6b63\u9700\u8981\uff0c\u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u7f16\u5199\u4e2a bat \u811a\u672c\uff0c\u5224\u65ad\u5f53\u524d&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/361375"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=361375"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/361375\/revisions"}],"predecessor-version":[{"id":361378,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/361375\/revisions\/361378"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=361375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=361375"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=361375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}