Skip to content

How To Blog

how to

  • How To Delete A YouTube Account How-To
  • 14 Best Free Audiobooks on Audible – 2022 Smartphones
  • How to Send Self-Destructing Messages on Slack How-To
  • Advanced Search on Twitter Like a Pro Computer Tips
  • Fix ( You’ll need a new app to open this ms-windows-store ) Error in Windows Windows
  • How To Import Your Contacts To Gmail Cool Websites
  • The Best Parental Control Software for Windows 10 Software Reviews
  • How To Download Complete YouTube Playlists Web Site Tips

How to Add to Windows PATH Environment Variable

Posted on October 8, 2020 By blog_786 No Comments on How to Add to Windows PATH Environment Variable

If you are a coder or programmer, you probably spend a decent amount of time using the command line to execute programs or compile code. To accomplish these tasks, you will most likely need to use a command from a library or software package installed (such as Python) on your system.

By default, most of these programs will add their own shortcuts to Windows environment variables. The most commonly used environment variable on Windows is probably the PATH variable. Basically, it allows you to run any executable files located inside the paths specified in a variable on the command line, without having to specify the full path to the executable.

In this article, I’ll show you how you can add additional paths to your Windows PATH if you want to run executables from your own directories. It’s worth noting that the procedure below is for Windows 10, but almost the same for Windows 7.

Add directories to PATH Variable

To get started, right-click on the “Computer” or “This PC” icon on your desktop and select “Properties.” If you don’t already have this icon on your desktop, you can easily add the missing icons to your desktop.

How to Add to Windows PATH Environment Variable

On the System dialog page on the left, you will see the Advanced System Settings link.

– /

How to Add to Windows PATH Environment Variable

The System Properties dialog box opens and should already be open on the Advanced tab. Go ahead and click the Environment Variables button at the very bottom.

How to Add to Windows PATH Environment Variable

In the Environment Variables dialog box, you will see two sets of variables, one for user-defined variables and one for system variables. Both lists have a PATH variable, so you need to decide which one to edit.

How to Add to Windows PATH Environment Variable

If you only need commands for your account, edit the user variable. If you need it to work on the computer system no matter what user is logged in, edit the system variable. Click Path, then click Modify.

How to Add to Windows PATH Environment Variable

In the Edit Environment Variable dialog box, you will see a list of all the paths that are currently in the PATH variable. As you can see, Node.js and Git have already added their paths, so I can run Git and Node.js commands from anywhere on the command line.

To add a new path, simply click New and a new line will be added to the end of the list. If you know the path, just enter it or copy and paste. Optionally, you can also click the Browse button and navigate to the desired path.

To edit any path, just select it and click the “Edit” button. You can also delete paths using the Delete button. Note that you can also move items up and down the list. When you enter a command at the command prompt, Windows must search each directory stored in the PATH variable to see if this executable exists or not. If you want your executable to be faster, just move that path up the list.

This can also come in handy if you have multiple versions of the same command on different paths and need to run one instead of the other. The one displayed above in the list will be launched when you enter the command.

Finally, if you click Edit Text, a dialog will open where you can edit the Path variable using the old interface where all paths are listed in a single text box.

How to Add to Windows PATH Environment Variable

That’s all! If you want to know more about environment variables, be sure to check out my post on how to create your own environment variables. Enjoy!

–

Windows 10

Post navigation

Previous Post: How To Check the Proxy Server Settings on Your Computer
Next Post: Troubleshoot Printer Stuck in Offline Status in Windows

Related Posts

  • How to set up a modern host in Windows 10 easy Windows 10
  • 10 Awesome Windows 10 Registry Hacks You Might Not Know Windows 10
  • Change Desktop Icon Spacing in Windows 10 Windows 10
  • How To Fix a Black Desktop Screen On Windows 10 Windows 10
  • Troubleshoot Printer Stuck in Offline Status in Windows Windows 10
  • How to Fix Registry Errors in Windows 10 Windows 10

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • Linux
  • Linux Tips
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018

2021 Amazon Android ) Apple apps Best black browser change Chrome Closing words Concluding remarks Conclusion Delete Download Error Facebook Files Find Free) From games Google Mac make Music Netflix ( online Open Packaging Password phone? Screen sites Tips using Video Videos Watch Websites What With Working? your YouTube

  • How to Setup a Server on localhost and Install WordPress How-To
  • How to Set Two Default Search Engines On Any Browser How-To
  • How to Add Stadia Games Shortcuts on Android Home Screen How-To
  • Best Mac Equivalents to Microsoft Paint General Software
  • How to Set Parental Controls on Popular Video Streaming Sites How-To
  • 5 Ways To Reveal The Path Of a File On MacOS OS X
  • How to scan Google Drive from your phone How-To
  • Cyberstalking Explained – Are You Being Stalked How-To

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
Go to mobile version