How To Easily Edit PATH and Run Program through Command Prompt

Have you ever wondered why only few commands written in command prompt open up a program? For e.g. typing a winword in command prompt will open microsoft word software and typing CALC will open calculator but whenever you typed a software named other than microsoft or windows based you have type the correct path and filename of the program. The reason of command prompt doing like this is because it will automatically execute the program stored in windows directory just by typing its name on command prompt and run tab. If you desired to open any program by typing through the command prompt then the first thing you need to do is copy the program files in Windows tab and type the .exe file name on the command line to execute the program.

add-edit-path-in-command-prompt

Adding Folder name to the Path

A simple software program like notepad++ and adb can easily be copied to the windows directory path and execute it with command but what can we do if the software is large in size just like adobe tool who uses large and multiple path to store and link files. These program files are hard to predict where they are store and even if you figure out the entire file changing those files directory might corrupt the software. So in order to run big software like that we have to define path name in environment variables.

Note:- The below method works in Windows 7 and 8.

  1. Open Start Screen and search for advance system settings (Can access through Control Panel -> Security -> System -> Advance System.
  2. Open theĀ advance system settings option and click on tab ADVANCE.
  3. On bottom right side of the tab click on button ENVIRONMENT VARIABLE.
  4. On System Variable search and locate the variable PATH and click on EDIT.
  5. Put Semicolon at the end of variable value and add your path where the files of the program are store and click on OK button.
  6. Now type the program name in the command prompt and press enter.

For Windows 10 and above

  1. Foll the first four step mentioned above then a new window will appear.
  2. Click on the new button and add the path of the program.

For more information and updates related to theĀ  Edit PATH and Run Program through Command Prompt stay updated to this website.

Leave a Reply

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