{"id":154,"date":"2012-10-16T18:14:20","date_gmt":"2012-10-16T17:14:20","guid":{"rendered":"http:\/\/frosteyes.dk\/?p=154"},"modified":"2013-05-05T21:17:41","modified_gmt":"2013-05-05T20:17:41","slug":"restoring-windows-environment-variable","status":"publish","type":"post","link":"http:\/\/www.frosteyes.dk\/index.php\/windows\/restoring-windows-environment-variable","title":{"rendered":"Restoring Windows environment variable"},"content":{"rendered":"<p>Sunday I had a problem after installing <a title=\"GHDL\" href=\"http:\/\/http:\/\/ghdl.free.fr\/\" target=\"_blank\">GHDL<\/a> on my Windows 7 at work. Instead of appending to the PATH variable, it changed it to only contain GHDL. When I found out a couple of days later, I needed to figure out to get the PATH back. First I found out that the PATH is located in the registry under HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\ and the registry data itself is located under %systemroot%\\System32\\Config\\ in the SYSTEM file. So I needed a backup of the registration database file. I noticed that inside the Config folder there is a RegBack folder containing a backup of the registry from some days before. As I was working over remote desktop, and the file was locked, I needed a way for copying them. So by using <a title=\"Runtime shadow copy\" href=\"http:\/\/www.runtime.org\/shadow-copy.htm\" target=\"_blank\">ShadowCopy<\/a> from Runtime, I made a copy of the system file, and by using regedit I loaded this file into a new key, and found my old path. Later I figured out that I might had been able to find the old path in the ControlSet00X instead of looking in CurrentControlSet, bud none the less I figured out a way to get it back.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sunday I had a problem after installing GHDL on my Windows 7 at work. Instead of appending to the PATH variable, it changed it to only contain GHDL. When I found out a couple of days later, I needed to figure out to get the PATH back. First I found out that the PATH is &hellip; <a href=\"http:\/\/www.frosteyes.dk\/index.php\/windows\/restoring-windows-environment-variable\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Restoring Windows environment variable<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":4,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":224,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions\/224"}],"wp:attachment":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}