How to add installed program to command prompt in windows?



The Command Prompt is an incredibly powerful tool in Windows, but in order to use it, you need to know how to add installed programs to it. This can be done in several different ways, depending on the program you are trying to add and the type of system you are using. In this article, we will discuss the different methods of adding installed programs to the Command Prompt in Windows.

The most straightforward method of adding installed programs to the Command Prompt is to add their .exe file to the system's PATH environment variable. The PATH environment variable stores a list of directories that the system will search for executable files when running a command. To do this, you will need to open the Command Prompt and type in the following command:

SETX PATH \%PATH%;C:\\Program Files\\[name of program]\\[name of program].exe\

This command will add the .exe file of the installed program to the PATH environment variable. If the program is located in a different directory, you will need to specify the full path to the .exe file. Once you have added the program to the PATH environment variable, it will be accessible from the Command Prompt.

Another method of adding installed programs to the Command Prompt is to create a batch file. A batch file is a text file that contains a series of commands that can be executed by the system. To create a batch file, open a text editor such as Notepad and enter the following commands:

@echo off
[name of program].exe
exit

Save the file as a .bat file and then copy it to the directory containing the installed program. Now, when you open the Command Prompt and type the name of the batch file, the installed program will be launched.

The final method of adding installed programs to the Command Prompt is to use a command line launcher. A command line launcher is a program that allows you to launch installed programs from the Command Prompt. There are several command line launchers available for Windows, such as the Windows Run Command Utility and the Windows Command Prompt Launcher. Once you have installed a command line launcher, you can launch installed programs from the Command Prompt by typing the name of the program.

In summary, there are several methods of adding installed programs to the Command Prompt in Windows. The most straightforward method is to add the program's .exe file to the system's PATH environment variable. You can also create a batch file or use a command line launcher to launch installed programs from the Command Prompt. Whichever method you choose, you should now be able to access installed programs from the Command Prompt.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo