{"id":4002,"date":"2010-12-20T12:01:59","date_gmt":"2010-12-20T08:01:59","guid":{"rendered":"http:\/\/msbro.ru\/?p=4002"},"modified":"2010-12-20T12:18:58","modified_gmt":"2010-12-20T08:18:58","slug":"udalit-fajjly-po-maske-cmd","status":"publish","type":"post","link":"https:\/\/msbro.ru\/index.php\/archives\/4002","title":{"rendered":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u043c\u0430\u0441\u043a\u0435 (CMD)"},"content":{"rendered":"<p>\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f:<\/p>\n<p>1. \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0437\u0436\u0435 13 \u0434\u0435\u043a\u0430\u0431\u0440\u044f 2010 \u0433\u043e\u0434\u0430<br \/>\n2. \u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 C:\\<br \/>\n3. \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u043c\u0435\u044e\u0442 \u0434\u043b\u0438\u043d\u0443 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f: (9 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432).exe<\/p>\n<p><!--more--><\/p>\n<p>\u041a\u043e\u0434:<\/p>\n<pre>\r\n@echo off\r\nfor %%f in (c:\\*.exe) do @call :check %%f %%~tf\r\ngoto :eof\r\n\r\n:check\r\nSet f_name=%1\r\nSet f_date=%2\r\nSet f_day=%f_date:~0,2%\r\nSet f_month=%f_date:~3,2%\r\nSet f_year=%f_date:~6,4%\r\n\r\nif (%f_year%) equ (2010) goto 2010\r\ngoto check_year_gtr\r\n\r\n:2010\r\nif (%f_month%) geq (12) goto 12\r\ngoto :eof\r\n\r\n:12\r\nif (%f_day%) geq (13) goto erase_file\r\ngoto :eof\r\n\r\n:check_year_gtr\r\nif (%f_year%) gtr (2010) goto erase_file\r\ngoto :eof\r\n\r\n:erase_file\r\necho kill %f_name%\r\ndel %f_name%\r\necho kill %f_name%&gt;&gt;log.txt\r\ngoto :eof\r\n<\/pre>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 file.bat \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438<br \/>\nPS: \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u041c\u0430\u0441\u0442\u0435\u0440 \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c! \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f: 1. \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0437\u0436\u0435 13 \u0434\u0435\u043a\u0430\u0431\u0440\u044f 2010 \u0433\u043e\u0434\u0430 2. \u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 C:\\ 3. \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u043c\u0435\u044e\u0442 \u0434\u043b\u0438\u043d\u0443 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f: (9 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432).exe<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[369,40],"class_list":["post-4002","post","type-post","status-publish","format-standard","hentry","category-scripts","tag-bat","tag-cmd"],"_links":{"self":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/4002"}],"collection":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/comments?post=4002"}],"version-history":[{"count":0,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/4002\/revisions"}],"wp:attachment":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/media?parent=4002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/categories?post=4002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/tags?post=4002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->