Not all program installers will modify your PATH environment variable to enable this. Fortunately, you can set or modify the PATH system variable in Windows very easily. Here’s how: Click Start –> Computer –> System Properties.

Click Advanced system settings.

From the Advanced tab, click Environment Variables…

In the bottom pane, scroll down to the variable named Path. Select it and click Edit.

In the variable value field, add a semicolon and then the path where the .exe you want to run from the command line is located. Be careful not to delete anything that’s already in the field, otherwise you might break another program. For example, I’m adding C:\Program Files\SendEmail by pasting in only the selected text in the screenshot.

When you are done, click OK. If you have cmd.exe open, close it and re-open it. Test out your modified PATH variable by typing in an .exe from the path you just added. Before you made this tweak, you would’ve gotten the error: ‘xxxx’ is not recognized as an internal or external command, operable program or batch file.

After the tweak, the executable will run no matter what directory you are in.

And that’s all. Not a hugely life-changing tip on its own, but combined with some other groovy tips I’ve got in store, it’ll make a world of difference. Stay tuned Comment Name * Email *

Δ  Save my name and email and send me emails as new comments are made to this post.

How to Set the PATH System Variable for Windows - 94How to Set the PATH System Variable for Windows - 14How to Set the PATH System Variable for Windows - 37How to Set the PATH System Variable for Windows - 78How to Set the PATH System Variable for Windows - 98How to Set the PATH System Variable for Windows - 38How to Set the PATH System Variable for Windows - 42How to Set the PATH System Variable for Windows - 34How to Set the PATH System Variable for Windows - 78