Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • MP3 Album Art Not Showing in Windows Explorer? Help Desk
  • Download High Resolution Book Cover Art How-To
  • How To Convert a Spotify Playlist To An Apple Music Playlist Computer Tips
  • YouTube Video Ideas: The Most Popular Types Of Videos On YouTube Product Reviews
  • How to turn webcam OSD notifications on / off in Windows 10 Windows 10
  • Dead Pixel Tests To Fix a Stuck Pixel On Your Monitor Tools Review
  • How to Share a VPN connection over Wi-Fi on Windows 10 How-To
  • WWDC2020 – How to Get iOS 14 and macOS Wallpapers for Any Device? How-To

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!

–

Share this:

  • Twitter
  • Facebook
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

  • Accessing the Windows Applications folder in Windows 10 Windows 10
  • 6 Windows Equivalents To Popular MacOS Features Windows 10
  • Top 10 Differences between Windows 7 and Windows 8/10 Windows 10
  • How to Fix Broken Registry Items in Windows 10 Windows 10
  • How To Download Windows 10 ISO Without The Media Creation Tool Windows 10
  • Troubleshoot Windows 10 Freezing or Locking Up Randomly Windows 10

Leave a Reply Cancel reply

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

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • 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
  • March 2021
  • 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
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • TemplateMonster WordPress Theme Review – Build a Site With Ease
  • 6 Best FTP Clients For Android
  • MailTag: Real-time Email Tracking, Made Easy
  • Here are the Top 10 highest paid YouTubers of 2017
  • Protect Your Facebook Account From Hackers (2017)
DMCA.com Protection Status

Recent Posts

  • Buying Bitcoin in India? Top 4 Indian Bitcoin Exchange Compared
  • TemplateMonster WordPress Theme Review – Build a Site With Ease
  • How to use Canva Docs to create documents online
  • PS4 won’t turn on but beeps? 9 Fixes Worth Trying
  • How to Create a Vision Board on Canva

Recent Comments

  1. How to Cancel Your Wall Street Journal (WSJ) Subscription on How to Cancel Your New York Times Subscription
  2. How to Fix Spotify Lyrics Not Showing Up on How to Delete or Delete Downloads from Spotify
  3. 6 Best FTP Clients For Android on Disney Plus not working on Fire TV? Try These 8 Fixes
  4. Protect Your Facebook Account From Hackers (2017) on Top 5 Facebook Alternative Apps For iOS Devices
  5. 4 Ways to Share WiFi Without Giving Away Your Password on How to fix if PS5 Not Connecting to Internet?
  • youtube comments not loading on chrome Help Desk
  • How to Change Your Online ID on PS4 How-To
  • How to Add an App to Android Home Screen Smartphones
  • How to Blur the Background in Zoom Computer Tips
  • How to See Someone’s Location on an iPhone iPhone
  • Fix “Setup is Preparing Your Computer for First Use” on Every Reboot Help Desk
  • Best Online Buying Guides to Consult Before Making a Purchase Computer Tips
  • Best checkbook cover with calculator 2020

    Best checkbook cover with calculator 2020. 1 - YOOMALL Leather Checkbook Register Cover Holder Case with Pen Holder Slim Wallet Top Re

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version