{"id":186,"date":"2018-02-09T14:49:10","date_gmt":"2018-02-09T06:49:10","guid":{"rendered":"http:\/\/www.mhfohk.com\/wordpress\/?p=186"},"modified":"2020-08-20T16:53:47","modified_gmt":"2020-08-20T08:53:47","slug":"dos-command","status":"publish","type":"post","link":"https:\/\/www.mhfohk.com\/wordpress\/2018\/02\/09\/dos-command\/","title":{"rendered":"\u5be6\u7528DOS Command"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\">\u522a\u9664\u4fee\u6539\u65e5\u671f180\u65e5\u4ee5\u4e0a\u7684\u6a94\u6848<\/span><br \/>\nforfiles \/p \"C:\\Logs\" \/s \/m *.* \/D -180 \/C \"cmd \/c del @path\"<\/p>\n<p><span style=\"text-decoration: underline;\">\u522a\u9664\u6240\u6709\u6a94\u6848\u9664\u4e86\u67d0\u500b\u6307\u5b9a\u6a94\u6848<\/span><br \/>\nfor \/f %%F in ('dir \/b \/a-d ^| findstr \/vile \"TargetFile.txt\"') do del \"%%F\"<\/p>\n<p><span style=\"text-decoration: underline;\">\u65b0\u589eWindows\u5de5\u4f5c\u6392\u7a0b<\/span><br \/>\n\u6bcf\u65e5\u57f7\u884c:<br \/>\nSchTasks \/Create \/SC DAILY \/TN \"TaskName\" \/TR \"C:\\Path\\Program.exe\" \/ST 02:00<br \/>\n\u53ea\u57f7\u884c\u4e00\u6b21:<br \/>\nSchTasks \/Create \/SC ONCE \/TN \"TaskName\" \/TR \"C:\\Path\\Program.exe\" \/ST 02:00 \/SD 2020\/01\/01<\/p>\n<p><span style=\"text-decoration: underline;\">\u958b\u555fWindows\u5de5\u4f5c\u6392\u7a0b<\/span><br \/>\ntaskschd.msc<\/p>\n<p><span style=\"text-decoration: underline;\">\u53d6\u5f97IP<\/span><br \/>\nFOR \/F \"delims=: tokens=2\" %%a in ('ipconfig ^| find \"IPv4\"') do set _IPAddress=%%a<br \/>\nfor \/f \"tokens=* delims= \" %%a in (\"%_IPAddress%\") do set _IPAddress=%%a<br \/>\necho Your IP is %_IPAddress%<br \/>\n\u5982\u679c\u4f60\u7684\u96fb\u8166\u6709\u591a\u65bc\u4e00\u7d44IP<br \/>\nFOR \/f \"tokens=1*delims=:\" %%a IN ('ipconfig ^| findstr \"IPv4\"') DO (<br \/>\nFOR \/f %%c IN (\"%%b\") DO ECHO %%c)<\/p>\n<p><span style=\"text-decoration: underline;\">\u8907\u88fd\u5230\u526a\u8cbc\u7c3f<\/span><br \/>\necho TextToCopy| clip<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u522a\u9664\u4fee\u6539\u65e5\u671f180\u65e5\u4ee5\u4e0a\u7684\u6a94\u6848 forfiles \/p \"C:\\Logs\" \/s \/m *.* \/D -180 &hellip; <a href=\"https:\/\/www.mhfohk.com\/wordpress\/2018\/02\/09\/dos-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"\u5be6\u7528DOS Command\"<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[10],"tags":[],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-dos"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9mX1K-30","_links":{"self":[{"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":9,"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":760,"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/posts\/186\/revisions\/760"}],"wp:attachment":[{"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mhfohk.com\/wordpress\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}