{"id":5596,"date":"2017-04-14T16:20:10","date_gmt":"2017-04-14T13:20:10","guid":{"rendered":"http:\/\/msbro.ru\/?p=5596"},"modified":"2017-04-14T16:29:42","modified_gmt":"2017-04-14T13:29:42","slug":"formirovanie-tekstovogo-fajjla-s-otchetom-pri-zapuske-exe-fajjla","status":"publish","type":"post","link":"https:\/\/msbro.ru\/index.php\/archives\/5596","title":{"rendered":"\u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441 \u043e\u0442\u0447\u0435\u0442\u043e\u043c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 EXE \u0444\u0430\u0439\u043b\u0430."},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/>\n\u041d\u0443\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 %computername% %username% %date% %time% \u043a\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u044d\u0442\u043e\u0442 EXE \u0444\u0430\u0439\u043b.<br \/>\n\u0424\u0430\u0439\u043b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u043c\u043e\u044f Z-SYS \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438).<br \/>\n<!--more--><\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Autoit (\u0441\u043a\u0440\u0438\u043f\u0442 msbro-z-sys-private):<\/p>\n<pre>#include \r\nLocal $my_Date = 'DATE:'&amp;@MDAY&amp;\"-\"&amp;@MON&amp;\"-\"&amp;@YEAR&amp;' TIME:'&amp;@HOUR&amp;'-'&amp;@MIN&amp;'-'&amp;@SEC\r\nLocal $my_Compname = @ComputerName\r\nLocal $my_UserName = @username\r\nLocal $my_Line1 = '==============================================================='\r\nLocal $my_Line2 = '---------------------------------------------------------------'\r\nLocal $my_Text1 = 'The alarm button was pressed'\r\n$my_File = FileOpen('c:\\msbro\\z-sys\\z-sys-alarm-file.txt', 1)\r\nFileWrite($my_File, $my_Line1 &amp;@CRLF)\r\nFileWrite($my_File, $my_Text1 &amp; '  ' &amp; $my_Date&amp;@CRLF)\r\nFileWrite($my_File, 'COMPUTER NAME : '&amp;$my_Compname &amp;@CRLF)\r\nFileWrite($my_File, 'USER NAME     : '&amp; $my_UserName &amp;@CRLF)\r\nFileWrite($my_File, $my_Line2 &amp;@CRLF)\r\nFileWrite($my_File, \" \" &amp; @CRLF)\r\nFileClose($my_File)\r\n<\/pre>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:<\/p>\n<pre>\r\n===============================================================\r\nThe alarm button was pressed  DATE:14-04-2017 TIME:16-24-37\r\nCOMPUTER NAME : COMPUTER445-PC\r\nUSER NAME     : Ivanov\r\n---------------------------------------------------------------\r\n<\/pre>\n<p>\u041f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d.<br \/>\n\u041f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u0443\u0442: <a href=\"http:\/\/msbro.ru\/wp-content\/uploads\/2017\/04\/msbro-z-sys-private.zip\">msbro-z-sys-private<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u041d\u0443\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 %computername% %username% %date% %time% \u043a\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u044d\u0442\u043e\u0442 EXE \u0444\u0430\u0439\u043b. \u0424\u0430\u0439\u043b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u043c\u043e\u044f Z-SYS \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1843,10],"tags":[1833,1842],"class_list":["post-5596","post","type-post","status-publish","format-standard","hentry","category-z-sys","category-scripts","tag-autoit","tag-z-sys"],"_links":{"self":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/5596"}],"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=5596"}],"version-history":[{"count":2,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/5596\/revisions"}],"predecessor-version":[{"id":5602,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/5596\/revisions\/5602"}],"wp:attachment":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/media?parent=5596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/categories?post=5596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/tags?post=5596"}],"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. -->