A bit confusing having them like this Why are you setting "path1" in the set and setx examples? Is that a typo or? Remy it seems like the examples above still use "path1" Sir,how to restore deleted path because I accidentally deleted it. In registry also I couldn't find the deleted path. LongPathTool a software will let you easily delete, copy or rename long path files.
It worked for me. Must Try Once. In Windows 8 and 10, you can navigate to Advanced System Settings in a similar way. Type environment variables in Windows Search box which gives you two options in search results: Edit the system environment variables Edit environment variables for your account.
Choose either option and you can add, edit or delete environment variables like PATH. Set environment variables from command prompt You can set environment variables from Windows Command Prompt using the set or setx command. Start the command prompt as administrator on Windows 10, right click on Start menu and select Command Prompt Admin. The maximum value allowed for a enviroment variable is characters. So if your variable is long and you try to append to it with setx, you may get a truncated result.
Set environment variable by Registry edit If your PATH variable is too long, then the best method would be to edit the registry. Post Comment. Post Reply. By using our site, you agree to our cookie policy.
Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article methods. Ask a Question. Tips and Warnings. Related Articles. Author Info Last Updated: June 30, Method 1. Open the "settings" application. This can be done by pressing the Windows key and clicking the gear icon in the "Start" menu.
You can also search "settings" in Cortana or in the "Start" menu. Select Edit the System Environment Details. A menu titled "System Properties" should pop up. Click Environment Variables. This should be on the right-hand side of the menu below the Startup and Recovery section. Select Path. You should not have to scroll down to find this option. Select OK once you're done editing.
This will save any changes you may have made. Method 2. Create a shortcut to "My Computer". Right-click on the shortcut and select Properties.
A window will open. Switch to the Advanced tab. In that tab, click on Environment Variables. Another window will open. Scroll down until you see "Path". Select it and click on Edit. A third window will open. Edit the PATH environment variable. Unless you really know what you're doing, don't remove what's already there, only append to it.
Click on OK. When the window closes, there should be a short delay because the environment variable is being updated. After that, you can press OK to close the other two windows, too. Check that the environment variable changed. The output should be your updated PATH environment variable. Include your email address to get a message when this question is answered.
Add, Edit or Delete the environment variable you want to change, then reboot to activate the changes. Remy it seems like the examples above are still using "path1" - were they not updated after all? A bit confusing having them like this Why are you setting "path1" in the set and setx examples? Is that a typo or? Remy it seems like the examples above still use "path1" Sir,how to restore deleted path because I accidentally deleted it.
In registry also I couldn't find the deleted path. LongPathTool a software will let you easily delete, copy or rename long path files. It worked for me. Must Try Once. In Windows 8 and 10, you can navigate to Advanced System Settings in a similar way.
Type environment variables in Windows Search box which gives you two options in search results: Edit the system environment variables Edit environment variables for your account. Choose either option and you can add, edit or delete environment variables like PATH. Set environment variables from command prompt You can set environment variables from Windows Command Prompt using the set or setx command.
Start the command prompt as administrator on Windows 10, right click on Start menu and select Command Prompt Admin. The maximum value allowed for a enviroment variable is characters. So if your variable is long and you try to append to it with setx, you may get a truncated result.
Set environment variable by Registry edit If your PATH variable is too long, then the best method would be to edit the registry.
The PATH environment variable specifies in which directories the Windows command line looks for executable binaries. The process for changing it is not obvious, but it's not too hard.
Read on to learn how to change PATH. Log in Social login does not work in incognito and private browsers. Please log in with your username or email to continue. No account yet? Create an account. Popular Categories. All Categories. Edit this Article. We use cookies to make wikiHow great. By using our site, you agree to our cookie policy.
Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article methods. Ask a Question.
Tips and Warnings. Related Articles. Author Info Last Updated: June 30, Method 1. Open the "settings" application.
This can be done by pressing the Windows key and clicking the gear icon in the "Start" menu. You can also search "settings" in Cortana or in the "Start" menu. Select Edit the System Environment Details. A menu titled "System Properties" should pop up.
Click Environment Variables. This should be on the right-hand side of the menu below the Startup and Recovery section. Select Path. You should not have to scroll down to find this option.
Select OK once you're done editing. This will save any changes you may have made. Method 2. Create a shortcut to "My Computer". Right-click on the shortcut and select Properties. A window will open. Switch to the Advanced tab. In that tab, click on Environment Variables. Another window will open.