{"id":2503,"date":"2010-07-15T22:21:51","date_gmt":"2010-07-15T18:21:51","guid":{"rendered":"http:\/\/msbro.ru\/?p=2503"},"modified":"2010-07-15T22:21:51","modified_gmt":"2010-07-15T18:21:51","slug":"skript-puti-baz-1s","status":"publish","type":"post","link":"https:\/\/msbro.ru\/index.php\/archives\/2503","title":{"rendered":"\u0421\u043a\u0440\u0438\u043f\u0442: \u043f\u0443\u0442\u0438 \u0431\u0430\u0437 1\u0421"},"content":{"rendered":"<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0442\u0430\u0449\u0438\u0442 \u0438\u0437 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043f\u0443\u0442\u0438 \u0434\u043e \u0431\u0430\u0437 1\u0421, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443 \u043d\u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/p>\n<p><!--more-->\u0412\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<pre>\r\n'==========================================================================\r\n' VBScript Source File -- Created with SciTE\r\n' NAME: 1c_path_to_base.vbs\r\n' AUTHOR: borin\r\n' DATE : 18.05.2010\r\n' COMMENT: \u0421\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b c:\\log_1c_title.txt, \u0442\u0443\u0434\u0430 \u043f\u0438\u0448\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e\r\n' \u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0431\u0430\u0437\u0430\u0445, \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0431\u0435\u0440\u0435\u0442 \u0438\u0437 \u043f\u0440\u043e\u0444\u0435\u043b\u0435\u0439 \u0442.\u0435. \u0438\u0437 ntuser.dat\r\n' \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.\r\n'==========================================================================\r\n\r\n' \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u0441 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u043c\u0438\r\nstrPathProfile = \"\\\\a-server\\x$\\Documents and Settings\\\"\r\n\r\nset WshShell = WScript.CreateObject (\"WScript.Shell\")\r\nset objFso = CreateObject(\"Scripting.FileSystemObject\")\r\n\r\nSet objPathToProfile = objFso.GetFolder(strPathProfile).SubFolders\r\n\r\nFor Each strFolder In objPathToProfile\r\n   strPathNtuser = strFolder.Path &amp; \"\\ntuser.dat\"\r\n   WshShell.Run \"reg load hku\\\" &amp; strFolder.Name &amp; \" \" &amp; chr(34) &amp; strPathNtuser &amp; chr(34),0,TRUE\r\n   WshShell.Run \"%COMSPEC% \/C reg query hku\\\" &amp; strFolder.Name &amp; \"\\software\\1c\\1cv7\\7.7\\Titles &gt;&gt; c:\\log_1c_title.txt\",0,TRUE\r\n   WshShell.Run \"reg unload hku\\\" &amp; strFolder.Name,0,TRUE\r\nNext\r\n\r\nMsgBox \"\u0412\u0441\u0435!\"\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0442\u0430\u0449\u0438\u0442 \u0438\u0437 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043f\u0443\u0442\u0438 \u0434\u043e \u0431\u0430\u0437 1\u0421, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443 \u043d\u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/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":[810],"class_list":["post-2503","post","type-post","status-publish","format-standard","hentry","category-scripts","tag-1s"],"_links":{"self":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/2503"}],"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=2503"}],"version-history":[{"count":0,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/posts\/2503\/revisions"}],"wp:attachment":[{"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/media?parent=2503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/categories?post=2503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/msbro.ru\/index.php\/wp-json\/wp\/v2\/tags?post=2503"}],"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. -->