Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Execute a Program in Command Prompt

Learn about Command Prompt, including Open Basic Programs, key uses, practical steps, common issues, and answers to frequently asked questions.

Table of Contents

Open Basic Programs

Open Basic Programs - Command Prompt

This practical guide explains how to execute a program in command prompt with clear steps and useful context. It also covers common requirements, potential problems, and the details that can help you get better results.

If you are using Windows 8, you will place the mouse pointer in the upper right corner of the screen and then click the magnifying glass icon in the menu that is displayed.

Open Basic Programs - Command Prompt

Type command prompt into Start to search for the Command Prompt program on your computer.

Open Basic Programs - Command Prompt

Click Command Prompt with the black box icon at the top of the Start window to open the program.

If you use a computer with limited access, you cannot open the Command Prompt.

Open Basic Programs - Command Prompt

Type start into the Command Prompt. Remember to put a space after start.

Open Basic Programs - Command Prompt

Type the program name into the Command Prompt. You must enter the file's system name, not the name displayed under the program's icon (such as the Command Prompt's system name cmd). Some familiar program names are as follows:

File Explorer - explorer

Calculator - calc

Notepad - notepad

Character Map - charmap

Paint - mspaint

Command Prompt (new window) - cmd

Windows Media Player - wmplayer

Task Manager - taskmgr

Open Basic Programs - Command Prompt

Press ↵ Enter. After entering the start program_name command, the computer will execute the "start" command for the selected program. You will see the program open after a few seconds of entering the command.

If the selected program does not start, it is possible that the program is saved in a folder that is not in the Command Prompt search path. You can add the program's folder to the Command Prompt path to fix this problem.

Open Some Specific Programs

Open Some Specific Programs - Command Prompt

Open Start by clicking the Windows icon in the lower left corner of the screen or pressing the Windows key on your computer's keyboard.

Open Some Specific Programs - Command Prompt

Open File Explorer by clicking the folder icon in the lower left corner of the Start window.

Open Some Specific Programs - Command Prompt

Open the folder where your program is saved. Access the folder containing the program you want to open by clicking any folder that needs to be opened.

When the icon of the program you want to open with Command Prompt shows up in the middle of the File Explorer window, you've opened the correct folder.

If you don't know where the program is saved, you can either access the "Program Files" folder on your hard drive as many programs are stored here, or you can use the search bar at the top of the window.

Open Some Specific Programs - Command Prompt

Select the path to the program's directory. Right-click the address bar at the top of the File Explorer window. You should see the contents of the address bar highlighted in green.

Open Some Specific Programs - Command Prompt

Copy the path by pressing Ctrl and C at the same time.

Open Some Specific Programs - Command Prompt

Click the This PC folder on the left side of the File Explorer window.

Open Some Specific Programs - Command Prompt

Click the This PC folder again. This will deselect any folders in the This PC folder, allowing you to open the This PC folder's properties.

Open Some Specific Programs - Command Prompt

Click the Computer tab in the upper-left corner of the page to view the toolbar.

Open Some Specific Programs - Command Prompt

Click Properties. It's a white box icon with a red check mark. After clicking, you will see another window display.

Open Some Specific Programs - Command Prompt

Click the Advanced system settings link in the upper-left corner of the window. This will open another window.

Open Some Specific Programs - Command Prompt

Click the Advanced tab at the top of the window.

Open Some Specific Programs - Command Prompt

Click the Environment Variables. option at the bottom of the window. The screen will display another window.

Open Some Specific Programs - Command Prompt

Click Path in the "System variables" window near the bottom of the page.

Open Some Specific Programs - Command Prompt

Click the Edit. option at the bottom of the page.

Open Some Specific Programs - Command Prompt

Click New in the upper-right corner of the Edit page.

Open Some Specific Programs - Command Prompt

Paste the path of the program. Press the Ctrl and V keys at the same time to paste the path into the Path window.

Open Some Specific Programs - Command Prompt

Click OK to save the path.

Open Some Specific Programs - Command Prompt

Open Command Prompt.

Open Some Specific Programs - Command Prompt

Open path. Type cd into the Command Prompt, press the spacebar, then press Ctrl+V to paste the program's path and press ↵ Enter.

Open Some Specific Programs - Command Prompt

Type start into the Command Prompt. Remember to put a space after start.

Open Some Specific Programs - Command Prompt

Enter the name of the program. Type the exact name of the program as shown in the directory, then press ↵ Enter and the program will be started.

If there is a space in the name of the program, type an underscore ("_") at the space (such as system_shock instead of system shock).

Or, you can enclose the path in quotes. (Example: start "C:/Program Files/Windows Media Player/wmplayer.exe")

Conclusion

Understanding Command Prompt makes it easier to compare options, avoid common mistakes, and apply the information in this guide more effectively. Review the relevant requirements before making changes or choosing a solution.

FAQ

How do you execute a program in command prompt?

Follow the steps in this guide in order, confirm the required settings or tools, and verify the result before making additional changes.

Is it safe to execute a program in command prompt?

It is generally safe when you follow the recommended instructions, use trusted tools, and avoid changing settings you do not understand.

What should you do if the process does not work?

Recheck the requirements, restart the device or application when appropriate, and review each step for missed settings or compatibility issues.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.