Control panel open on a Windows 10 laptop
Jason Fitzpatrick / How-To Geek
The PATH tells Windows where it should look for executables, making them accessible via command-line interfaces or scripts. To add a new folder to PATH, navigate to Advanced System Settings > Environment Variables, select PATH, click "Edit" and then "New."

Have you ever wondered why you can just type ipconfig into a command prompt and it works, but when you want to use a command line program you downloaded you have to navigate to its directory first? Here’s how to fix that using the Windows System PATH on Windows 10 and Windows 11.

What Is the Windows System PATH?

The Windows System PATH tells your PC where it can find specific directories that contain executable files. Ipconfig.exe, for example, is found in the C:\Windows\System32 directory, which is a part of the system PATH by default. When you type ipconfig into a Command Prompt, Windows doesn’t need to know where that EXE is — it’ll check all the folders in its PATH until it finds the right one.

If you’ve downloaded a program that uses a command-line interface — like ADB, the Android Debug Bridge — you can’t just type adb in the Command Prompt or PowerShell to run it, like you can with Windows’ built-in commands (e.g. ipconfig). Instead, you have to tell Command Prompt where to find that file, by typing in the full path of the EXE:


If you don’t, you’ll get an error message like this.

ADB is not recognized since it is not on the system PATH.

That’s a lot of typing, especially for something you have to run often.

If you want the same convenience with a program you downloaded (like ADB), you need to add its folder to Windows’ system PATH. That way, when you need to run adb, you can just run:


No extra typing necessary.

How to Add a Folder to Your PATH

These steps are basically the same on Windows 10 and Windows 11. There are just some minor differences in the user interface.

Start by pressing the Windows key to open up the Start Menu, then search for “advanced system settings.” You can alternatively browse through Control Panel to System and Security > System and click on the “Advanced system settings” hyperlink in the left-hand pane.

Open the Start Menu, then search "Advanced System Settings."

Once the System Properties window opens, click on the “Environment Variables” button.

In the “System Variables” box, look for a variable called Path. Select that and click on the “Edit” button.

Note: You can modify the PATH for only the current user by changing the PATH variable under “User Variables.” It won’t affect other users, however. In many cases, it is better and more convenient to add something to the system PATH, so it is universally accessible on your PC.

This process is both easier and less confusing in Windows 10 and Windows 11 than it was in earlier versions of Windows. Once you’ve clicked the edit button, a new dialog box will appear with each location in the PATH on a separate line. This is a dramatic improvement over the way previous versions of Windows handled PATH locations and makes easy work of adding a new one.

The current PATH.

First, click the ‘new’ button, which will add a line at the end of the list. Add your location — “C:\AndroidSDK” in our example — and hit Enter. Click the “OK” button and you’re finished.

Note: Older versions of Windows required each line end with a semi-colon, but Windows 10 and 11 do not if you use the user interface like we are here. If you use a command-line interface to edit the PATH, you’ll still find them there.

The Android Debugging Bridge should now be accessible from any Command Prompt, PowerShell, or Windows Terminal, with no need to specify its directory.

ADB now works in PowerShell without specifying the path manually.

You can add as many locations as you like to PATH. However, convention and best practice dictate that you try to avoid cluttering up your PATH with unnecessary executables.

RELATED: How to Use Windows CMD Environment Variables

Profile Photo for Cameron Summerson Cameron Summerson
Cameron Summerson is ex-Editor-in-Chief of Review Geek and served as an Editorial Advisor for How-To Geek and LifeSavvy. He covered technology for a decade and wrote over 4,000 articles and hundreds of product reviews in that time. He’s been published in print magazines and quoted as a smartphone expert in the New York Times.
Read Full Bio »
Profile Photo for Nick Lewis Nick Lewis
Nick Lewis is a staff writer for How-To Geek. He has been using computers for 20 years --- tinkering with everything from the UI to the Windows registry to device firmware. Before How-To Geek, he used Python and C++ as a freelance programmer. In college, Nick made extensive use of Fortran while pursuing a physics degree.
Read Full Bio »