I was trying to get the EnvSet() but people on the internet say it only works while script runs.
So i went doing it with the registry instead.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
I accidentally replaced "path" key with my own value.
2 questions
What is the default value in Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\path ? for Win10X64 ?
Second question is:
Why
Correct, I've been working on a UDF but been caught up with other project work, so haven't really been able to do a complete test:
#RequireAdmin ;~ Required when writing to System Environment Variable
#include <Array.au3>
; #VARIABLES# ===================================================================================================================
Global $MAX_VALUE_NAME = 1024
Global $HWND_BROADCAST = 0xffff
Global $WM_SETTINGCHANGE = 0x001A
Global