How To Run a Program From Command Prompt on Windows

How To Run a Program From Command Prompt on Windows
How To Run a Program From Command Prompt on Windows

Users may do a range of operations from one spot using the Command Prompt. This program is frequently useful to IT professionals who are working on tasks or projects. Even regular computer users might benefit from learning how to Run Command Windows 10 in case they need to troubleshoot. In this post, we’ll go over what Command Prompt is, why you should use it, how to use it to launch programs, and some other helpful hints.

What is Command Prompt?

What is Command Prompt

On most Windows systems, a program called Command Prompt interacts directly with the operating system to automate processes using scripts and batch files. This program is a text-based command-line interpreter with navigational capabilities. Additionally, it is utilized to carry out complex administrative tasks or resolve specific Windows problems. For instance, you may use Command Prompt to track down a potential hacker, discover who has used your WiFi or perhaps update a file that won’t open. You can have additional power over your computer by using Command Prompt, including the ability to interact with apps that only communicate through Command Prompt.

Advantages of using the Command Prompt to launch a program

Using Command Prompt to execute applications and carry out activities has a number of advantages, including time savings and the ability to resolve errors on windows in the event that a system or GUI (Graphical User Interface) application crashes. Sometimes, accessing information or doing operations is quicker using Command Prompt. Because a program running from the Command Prompt doesn’t need to process any graphics, it often uses less memory than a program running through a GUI and runs faster. Even if your CPU is sluggish, Command Prompt can still function well.

How to run a program on Command Prompt

1. Open your Start menu and type “cmd” in the search box

Find and click on the Start menu in the bottom left corner of your screen. Type “cmd” into the white search box next to the Windows symbol. The first result of the search is Command Prompt.

2. Click on Command Prompt to open the application and type your first command

When you choose “Run as administrator” from the context menu of the application, a new Command line window appears. A blank screen with plain text appears when you do this.

3. Determine which program you want to run

Locate the directory containing the file you wish to launch. It’s vital to note that Command Prompt can only execute applications that are placed in directories that Windows has established. To launch a program inside the application, you may add the folder of the program to the Command Prompt list.

4. Find the file path of the folder with your exe program

In the Command Prompt, type “cd [filepath]”. This makes it possible for you to locate the folder containing the.exe application you wish to launch. By hitting Ctrl and Ctrl+C in a File Explorer window, you may access a specific folder and copy the file path indicated in the address bar at the top of the window. Find the Google Chrome folder in your Program Files, for instance, to launch Google Chrome. Its location is “C:Program FilesGoogle” in the file path.

Common commands to use in Command Prompt

Common commands to use in Command Prompt

You may use the following commands to communicate with Command Prompt:

  1. system info: This shows details about your Pc settings and particular properties.
  2. Task List: This lists all running Services and Tasks.
  3. taskkill: This terminates a program or process.
  4. time: This establishes the time on the computer.
  5. type: This shows a text file’s whole contents.
  6. ver: The Microsoft Windows version on your PC is displayed here as ver.
  7. Verify: Windows can use this to determine whether your files were appropriately written to a drive.
  8. xcopy: copies directory trees and files.