How To Run A Program From The Command Line

Table of contents:

How To Run A Program From The Command Line
How To Run A Program From The Command Line

Video: How To Run A Program From The Command Line

Video: How To Run A Program From The Command Line
Video: Tutorial: How to Run Programs From a Command Line Prompt 2024, December
Anonim

Absolutely all programs can be run from the command line. This feature appeared in the first operating systems, including the line of Microsoft Windows systems. Previously, operating systems were a solid command line (MS-DOS system). Today, many software developers include in their distribution the ability to run one file using the command line.

How to run a program from the command line
How to run a program from the command line

Necessary

Operating system command line (cmd.exe)

Instructions

Step 1

For the simplest launch of the program from the command line, you must do the following:

- click the "Start" menu - select "All Programs" - "Accessories" - "Command Prompt";

- in the window that opens, you must return to the "C" drive, for this, at the end of the line, enter "cd.." and press Enter. Repeat this action several times until the complete transition to the "C" drive;

- enter the full path to the program you are launching (C: / Program Files / KeyTweak / KeyTweak.exe).

Step 2

You can also run the program with different parameters. These parameters are in addition to the actions performed by the program itself. Additional parameters look like an addendum to the main line of the program launch.

Step 3

A command line with additional parameters might look like this:

"C: / Program Files / KeyTweak / KeyTweak.exe" u -r –y.

C: / Program Files / KeyTweak / KeyTweak.exe - full path to the Key Tweak program.

Key Tweak parameters used in this example are:

- "u" - quick start of the program;

- "-r" - restore the last saving of changes;

- "-y" - answer "Yes" to requests coming from the system.

Step 4

In order to create a cmd file, you must:

- create a new text document with the.txt extension.

- write down the required set of commands.

- save a new file with the.cmd extension.

After completing these steps, run the file.

Recommended: