{"id":5002,"date":"2017-10-17T22:16:08","date_gmt":"2017-10-17T20:16:08","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=5002"},"modified":"2017-10-18T16:36:06","modified_gmt":"2017-10-18T14:36:06","slug":"windows-open-registry-editor-regedit-exe-at-a-given-key","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-open-registry-editor-regedit-exe-at-a-given-key\/","title":{"rendered":"Windows: Open Registry Editor regedit.exe at a given key"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_5002 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_5002')){$('.twoclick_social_bookmarks_post_5002').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Open%20Registry%20Editor%20regedit.exe%20at%20a%20given%20key\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Aregedit.exe%20does%20not%20accept%20any%20command%20line%20parameters%20for%20opening%20a%20given%20key.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-open-registry-editor-regedit-exe-at-a-given-key\\\/\",\"post_id\":5002,\"post_title_referrer_track\":\"Windows%3A+Open+Registry+Editor+regedit.exe+at+a+given+key\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>regedit.exe does not accept any command line parameters for opening a given key.<br \/>\n<!--more--><\/p>\n<p>With this hack it does \ud83d\ude42 Simply set the last opened key to your key. <\/p>\n<p>Create a batch file openreg.cmd<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n@echo off\r\nif %1==&quot;&quot; exit \/b 1\r\nset OPEN_REGKEY=Computer\\%1\r\nreg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Regedit\\ \/v Lastkey \/d %OPEN_REGKEY%  \/t REG_SZ \/f\r\nregedit\r\n&#x5B;shell]\r\n\r\nTry it. Importend: You have to set a &quot;Computer\\&quot; in front of your key, because regedit could also open keys on other computers.\r\n&#x5B;shell]\r\nc:\\&gt; openreg.cmd &quot;Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT&quot;\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, regedit.exe does not accept any command line parameters for opening a given key.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1097,838,139,1095,1096,20],"class_list":["post-5002","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","tag-given","tag-key","tag-open","tag-regedit","tag-specific","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=5002"}],"version-history":[{"count":1,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5002\/revisions"}],"predecessor-version":[{"id":5003,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/5002\/revisions\/5003"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=5002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=5002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=5002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}