Your user folder is the folder that contains your "personal" folders and files, like "Desktop" and "MyDocuments". You can find your user folder by opening a Command Prompt window and typing:
C:\>echo "%userprofile%"
"C:\Users\yourusername"
C:\>
Whatever is displayed for you is your user folder: "C:\Users\yourusername"
Here is an easy way to recover the previous Path, without having to deal with permanently rolling back to a previous System Restore Point, and without having to use the Registry Editor (Regedit).
- Insure that you have saved a current
System Restore Point.
- (Temporarily) roll back to a previous
System Restore Point that was saved before the Path variable was deleted.
- Open a
Command Prompt window.
Insure that the Path variable has your desired value:
C:\>echo %Path%
C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
C:\>
Save a copy of the Path variable:
echo @set "Path=%Path%">"%userprofile%\Desktop\setpath.cmd"
Restore the System Restore Point from Step 1.
Using Notepad or your favorite text editor, open the file:
"%userprofile%\Desktop\setpath.cmd"
Select the Path value and copy it to the Clipboard.
Open the Environment Editor:
Start (orb) --> right-click Computer --> Properties --> Advanced system settings --> Advanced-tab --> Environment Variables
Locate the Path variable in either the User variables or System variables section, according to your needs and click Edit.... Or, if no Path variable is found, click New... and type Path into the Variable name textbox.
- Paste the
Path value that you copied to the Clipboard in Step 8, to the Variable value textbox.
- Click OK to save the restored
Path value.
- Click OK to close the
Environment Variables editor window.
- Click OK to close the
System Properties window.
- Close the
MyComputer-Properties window.
You are done. You have retained your current System Restore Point and restored the deleted Path variable.
Save a new System Restore Point which will contain the restored Path variable.
You can retain the file:
"%userprofile%\Desktop\setpath.cmd"
in case you need to restore the Path variable again in the future.