<!-- read_path_from_registry.hta -->
<style>
textarea {
width: 100%;
height: 50%;
}
</style>
<textarea id="machine_path"></textarea>
<textarea id="user_path"></textarea>
<script>
var sh = new ActiveXObject("WScript.Shell");
machine_path.value = sh.regRead("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\Path").split(";").join("\n");
user_path.value = sh.regRead("HKEY_CURRENT_USER\\Environment\\Path").split(";").join("\n");
</script>
Created
May 19, 2021 21:32
-
-
Save MarkTiedemann/a58ec6d74460fdc2e1200a75bc08d028 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment