On Mon, Aug 1, 2011 at 6:35 PM, Vladimir Panteleev <span dir="ltr"><<a href="mailto:vladimir@thecybershadow.net">vladimir@thecybershadow.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 01 Aug 2011 20:58:08 +0300, Brad Anderson <<a href="mailto:eco@gnuk.net" target="_blank">eco@gnuk.net</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
there is no way (that I know of) to look at what your PATH was before it was destroyed and the PATH is often updated by installers (as it is with dmd).<br>
</blockquote>
<br></div>
If you haven't rebooted your machine yet - Windows stores a backup copy of the system registry hives for the "last known good configuration" boot feature. These copies are stored in C:\Windows\Repair (XP and before) or C:\Windows\System32\config\<u></u>RegBack (Vista and after). You will not be able to access these files directly, though - you'll need to use a tool or risk a poweroff and boot from another OS. Once you have a readable copy, you can "mount" the hives to an empty key in your registry with RegEdit. PATH is located at HKEY_LOCAL_MACHINE\SYSTEM\<u></u>CurrentControlSet\Control\<u></u>Session Manager\Environment (though you won't see CurrentControlSet in the mounted hive, it's a symbolic link of sorts to one of the ControlSetXXX keys).<br>
</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">
-- <br>
Best regards,<br>
Vladimir mailto:<a href="mailto:vladimir@thecybershadow.net" target="_blank">vladimir@<u></u>thecybershadow.net</a><br>
</font></blockquote></div><br><div>I'll try this. Thanks for the tip.</div><div><br></div><div>Regards</div><div>Brad Anderson</div>