How To Run A Program From The Console

Table of contents:

How To Run A Program From The Console
How To Run A Program From The Console

Video: How To Run A Program From The Console

Video: How To Run A Program From The Console
Video: How to Build / Compile and Run a C Program in Command Prompt ( cmd ) on Windows 10 2024, November
Anonim

The main condition for executing the operation of launching the program from the command console is the exact knowledge of the name and storage location of the executable file of the selected application. It is also possible to set the required parameters and application keys, if their use is permissible.

How to run a program from the console
How to run a program from the console

Instructions

Step 1

Click the "Start" button located in the lower left corner of the computer monitor screen to open the main system menu and go to the "Run" item to open the Program Launch Console window. Alternatively, you can simultaneously press the Win + R function keys.

Step 2

Enter the value of the full path to the executable file of the selected program in the "Open" field and specify the desired keys and parameters (if necessary).

Step 3

Use the down arrow icon located on the right side of the file name input field to display previously launched programs and to select the desired application.

Step 4

Click the "Browse" button if you cannot determine the full path to the executable file of the selected program to open a new dialog box displaying the computer's file system. This action will help in finding the required file.

Step 5

Click the "Open" button when an executable file of the selected program is found in the file system tree of the computer to automatically copy the file name into the entry field of the command console prompt.

Step 6

Click OK to confirm the command.

Step 7

Remember that the system requirement "The program must be run as administrator" implies the use of a command line interpreter window. To carry out such an operation, you must perform the following steps.

Step 8

Return to the main Start menu and go to All Programs.

Step 9

Expand the Standard link and select the Command Line component.

Step 10

Enter the value runas / user: user_name "program_name path_to_program_file" to run the selected program as administrator.

Step 11

Call the context menu of the selected program in the "Windows Explorer" tool by right-clicking and select the "Run as" command to perform an alternative operation of launching the application as an administrator.

Step 12

Apply the checkbox to the Specified User Account field and enter the computer administrator name and password in the appropriate fields.

Recommended: