On my Windows 10 computer, when I display the 'path' environment variable in a command window, there's an extra folder at the end. It's a folder that I once used, but some time ago I deleted the folder and removed it from the 'path'.
The normal GUI for displaying and editing the path shows the value I expect, but the value shown in a command window is as though I'd executed a command
set path=%path%;c:\xyz
I can't find 'c:\xyz' when I search the registry, and there seems to be no 'autorun' associated with the 'Command Processor'.
I tried creating a new shortcut for cmd.exe, but it made no difference.
However, when I run the command prompt as administrator, the unwanted folder isn't shown.
Where can the extra entry be coming from?