Did you run some command from stack overflow that wiped your PATH
? Did you assume the PATH
variable on Windows works like it does on Linux? Are you getting ObjectNotFound
with every command you run?
Fret not because so did I once upon a time and I learned from my mistakes. Better write them down before I forget
Try the following:
- Delete the entire registry ree under
HKEY_CURRENT_USER\Console
including the directory itself - Reset your
PATH
in the System Environment variable tto the following values:%SystemRoot%\system32 %SystemRoot% %SystemRoot%\System32\Wbem %SystemRoot%\System32\WindowsPowerShell\v1.0
- Reset your User's
PATH
in a pretty similar way%USERPROFILE%\AppData\Local\Microsoft\WindowsApps %USERPROFILE%\.dotnet\tools
After doing all this, you might have to log out of your user session, and log back in. Or maybe restart? 🤷