Fix system variable Path in Windows 10

-1

So earlier today, I was actually figuring out a way to edit some system environment variables (to be accurate, adding Python to Path) using Command Prompt. So I researched on the Internet how to do it. Heard about setx command and tried it out.

At first, I thought about trying on VMware first but I was not thinking about the outcome so I tried it on my system (lol). The command I used is

setx Path "C:\Users\(my username)\AppData\Local\Programs\Python\Python37-32 /m". 

So I rechecked in the Environment Variables section and I figured out that I changed the whole Path crap. I have tried System Recovery so far but failed on error 0x8007045b, then I tried on WinRE and get error 0x8007007e. It said that it failed to extract the original copy of the directory from the restore point. The source is from %ProgramFiles%\WindowsApps, destination AppStaging or something like that. I want to undo this action immediately.

Please help.

windows
command-line
asked on Super User Jul 28, 2019 by Kaneshiro Yoshisada • edited Jul 28, 2019 by Sathyajith Bhat

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0