DEV Community

Cover image for Adding Files to the PATH on Windows 10
Ben Soyka
Ben Soyka

Posted on β€’ Originally published at Medium

6 2

Adding Files to the PATH on Windows 10

As a Windows user, you'll often find the need to add executables and other files to your system PATH. This means you can access them from any location in the command prompt.

Often, program installers will do this for you. For example, the Python installer has a checkbox to add Python to your PATH variable automatically.

In the case you need to manually add to your PATH, here are some simple instructions:


Make/find a folder

You can't directly add files to the PATH variable, only folders. So, start off by finding the folder where your file is located.

If you simply downloaded the file, it's recommended that you make a folder in another location such as your Documents folder.

Get the folder path

By clicking on the "address bar" in the file explorer, you can get the folder’s path.

Screenshot

Navigate to "Advanced system settings"

Right-click on the Windows logo to show a new menu. Choose the "System" option. Once the Settings app opens up, choose the "System info" link.

This will open up a Control Panel page where you can view information about your device, and more importantly, change a few advanced settings. Click the appropriate link to visit that menu.

Screenshot

Once here, click on the button at the bottom to open the Environment Variables menu. With this new menu open, select the PATH variable in the first list and click the Edit button.

Press the New button, paste in the folder path from earlier, and press Enter. Press OK a few times and you're done!


Now that you've added your folder to the PATH variable, any files you add there will be accessible from the command prompt no matter where you are on your computer.

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay