Program line. How to call the command line? Running the command line

Command Prompt is a must-have feature for every Windows. Any user has encountered it at least once in one case or another. Sometimes the command line is necessary for the user himself to make certain changes to the operation of the computer. In this article you will learn about Windows 10.

What is it?

Let's figure out the purpose. The command line is a standard Windows program for entering commands without using windows and operating system controls. The program is a window with a text interface and a field for entering characters. Supports only Latin letters and Arabic numerals. You will not be able to type a command in Russian letters. The functionality of the program is simply enormous. Using commands, you can open various files if you do not have access to Explorer, change registry settings, and much more. Let's figure out how to open the command line in Windows 10. There are two simple ways to do this. They are slightly different from previous versions of Windows, but the essence remains the same.

Start Menu

Let's figure out how to open the command line in Windows 10. Click on the Start menu icon at the bottom left. Next, click on the “All Applications” tab. Among all programs, find the “Service” sub-item. It contains the necessary program. You can launch CMD with one left click of the mouse. Some commands will require administrative access. Let's figure out how this can be done.

Find the program in the list of utility programs using the method described above. Using the right mouse button, open the file as administrator.

The next method is also related to the Start panel. In older versions of Windows, you had to go to the menu and select Run. In the “ten” everything is much simpler. To start, click on the magnifying glass icon next to "Start". In the search bar, type a combination of English letters cmd. The search will return the desired program. Click on the command line with the left mouse button.

How to open the command line in Windows 10 using Explorer

With the updated version of the OS, you can use new features in File Explorer. Open the desired folder. In the line at the top of the window, click on the “File” item, then select the item associated with the command line. Next, you can choose the normal launch option or opening with administrator rights. In the window that opens, you can apply commands to the folder opened in Explorer. Now you know how to quickly open the command line in Windows 10.

Another method

You can also open the program by following the specified path in the system folder. You need to go to the Windows partition on the system disk (the partition with the installed operating system). Next, find the System32 folder. It contains the required cmd.exe file. This path is suitable for 32-bit OS versions. In the SysWOW64 folder in the 64-bit version there is the Windows 10 command line. You know how to call (open) the application, all that remains is to use its functionality for its intended purpose, using special commands.

The command shell is a separate software product that provides direct communication between the user and the operating system. The command line text user interface provides an environment in which to run text-based applications and utilities. In the command shell, programs are executed and the execution result is displayed on the screen.

The Windows command shell uses a command interpreter cmd.exe, which loads applications and directs the flow of data between applications to translate the entered command into a form understandable to the system. The command line console is present in all versions of Windows operating systems. The difference between working from the command line is the complete absence of large and cumbersome graphical utilities.

How to open the command line

The command line is the cmd.exe application and can be launched in the following ways:

  1. Start -> All programs -> Standard -> Command line.
  2. Start -> Execute and enter the program name cmd.exe

    In order to go to the desired directory, you need to use the command CD. For example, if you need to run a program ExifPilot.exe, which is in the directory C:\Program Files\Exif Pilot, then you need to run the command cd C:\Program Files\Exif Pilot. You can do the same by changing directories one by one and calling the command one by one CD.

    So, the next set of commands is similar to the previous one.
    cd c:\Program Files
    cd Exif Pilot

    To print the contents of a folder, just type the command dir. It is possible to redirect the stream output by the program directly to a text file for further processing. To do this you need to use a control character ">" and the name of the text file, for example dir > report.txt.

  3. In order not to manually navigate to the desired directory, you can use some file manager. First you need to go to the desired directory in the file manager and call cmd.exe from the manager's command console.
    You can use file managers such as Total Commander, FAR Manager, 2xExplorer, EF Commander, Speed ​​Commander etc.
    You can find out more about file managers.

How to pass command line parameters to the called application

Each application that supports the command line has a special set of commands that the program can process. Command parameters can have a variety of formats. To pass parameters to the program, you must enter the application name and command parameters on the command line. After clicking Enter The application will launch with the entered commands.
For example, program.exe /print c:\doc\1.txt. The result of the command will be to print the file doc\1.txt.

Customizing the Command Prompt Window

To configure the command line, follow these steps:

  1. Open a command prompt window.
  2. Click the upper left corner of the window and select the command Properties.
  3. Select a tab General.
  4. In the area Remembering commands select or enter a value 999 in the field Buffer size, and then select or enter a value 5 in the field Number of buffers.
  5. In the area Editing check the boxes Selection And Quick insert.
  6. Select a tab Location.
  7. In the area Buffer size screen, enter or select a value 2500 in the field Height.
  8. Do one of the following as you choose:

    - In the area Screen Buffer Size Width.
    - In the area Window size increase the parameter value Height.
    - In the area Window size increase the parameter value Width.

  9. Uncheck Automatic selection, and then in the area Window position change field values Left edge And Top edge.
  10. In the dialog box Changing Properties select an option Save properties for other windows with the same name.

Notes:

  • To open a window Properties -> Command Line using the keyboard, press the keys ALT+SPACEBAR +Y.
  • Checkbox Mouse selection Allows you to copy and paste data in a command prompt window. To copy, left-click the text in the command line window and right-click. To paste into a command line or text file, right-click.
  • Increasing the screen buffer size to 999 allows scrolling in the Command Prompt window.
  • Increasing the number of buffers to five increases the number of lines in the Command Prompt window to 5000.

Editing text in the command prompt window

To copy and paste text into a command prompt window, use common Windows keyboard shortcuts such as Ctrl+C, Ctrl+V, will not work.

To extract text from the clipboard you will have to bring up the menu by right-clicking on the window title and select submenu Change. Or just right-click on the window.

To copy text from the window select the item Flag and use the mouse to select the desired text. Then either click Enter, or in the same menu select Copy. If you need to paste some text into the command line window, refer to the command Insert.

To re-execute a command use the arrows "up" And "down", allowing you to navigate through the list of executed commands. To clear the screen of text, use the directive cls.

How to close the command prompt window

To close the command line console, you need to run the command exit.
There are many commands and utilities in modern operating systems. It is very difficult to remember so many different programs, and even more so their parameters, so one of the most important parameters for each program is the combination of symbols "/?" . After executing a command with this parameter, the user will receive a comprehensive message about the use of the utility and the syntax of its parameters. For example, by typing on the command line cmd /?, you can view information about the team cmd.

Sometimes you have to use the command line to solve computer problems. There are several ways to do this. In the right hands, the command line is a very powerful and flexible tool. With its help you can get to the most hidden settings of the operating system. Hackers can use the command line to show you capabilities of your computer that you don't even know about.

But first you need to find this so-called command line. Today we will talk about how to open the command line in Windows 10. Some of these methods are also suitable for other Windows systems. So watch, read and apply.

What is the command line inWindows

The Command Prompt is a must-have program on any operating system for issuing commands without using windows. The program itself looks like a black window with a white line. You can enter commands only in Latin and Arabic numerals. She does not understand Russian letters and does not even allow them to be entered.

Calling the command line from the Start menu

Click on the button Select the item " All applications" (if you have one), and go to the section with the letter " WITH" Click on the folder " Service –Windows" In the list that opens, you will find a command line shortcut. Clicking on it will open the command line.

Calling the command line via searchWindows

Find on , near the menu button " Start» icon with a picture of a magnifying glass. This is the windows search icon. Click on it with the left mouse button. In the input field, start writing the word “command”.

In the attached list above, find the command line icon and click on it with the mouse.

If you right-click on this icon and select " Run as administrator", then the command line will launch with more advanced capabilities.

P.S. This is only possible if you are running with an administrator account.

Call the command line with administrator rights

Some actions on the command line can only be performed with administrator rights. In this case, you need a command line with these rights.

If you work on your computer under an administrator account, then you can run such a line without problems. To do this, just right-click on the command line icon in the methods described above, or

right-click on the menu button " Start", and select the item " Command line (administrator)".


Calling the command line using the Run command

Press the "" keys on your keyboard at the same time. Win» + « R».

First, let's figure out what the command line is. Command line (console) interface - text. The user enters certain commands from the keyboard, and the system executes them. The command line is used, for example, to access a website (server) or for problems with the Internet.

In Windows NT OS (Windows 2000 and higher) it is used command line interpreter cmd.exe, which replaced the outdated command.com interpreter, which was used in systems of the Windows 9x and MS-DOS family. The interpreter translates the text command into a form understandable to the system. Launching a command prompt in Windows means running the cmd.exe application.

To open the command prompt, you can use one of the following methods.

Click on the “Start” button. In the menu that opens, select Run. In the window that opens, in the Open line, enter the name of the program cmd.exe and click on the OK button or press the Enter key on the keyboard. In order to open the Run window, you can also use the key combination Win + R (Win is the key with the Windows logo in the bottom row of the keyboard).

You can open the command line in a more “traditional” way by selecting it from the list of installed programs. To do this, again, click on the “Start” button, select the All Programs item in the menu, then the Standard item, and from the list of standard programs select the program we need - Command Prompt.

But running the command prompt this way may prevent you from running certain commands. To achieve this, you need to run the command line as an administrator. To do this, we “get” to the command line using the previous method (Start - All Programs - Accessories), but click on the phrase Command Prompt not with the left mouse button, but with the right one. A context menu will open. In it, click on the item Run as administrator. A dialog box may appear: “Do you want to allow the following program to make changes on this computer?” Feel free to click “Yes”.

In order not to perform the same manipulations every time you start the command line, you can configure automatic run as administrator. To do this, call the context menu in the same way as in the previous case, but instead of Run as administrator, select Properties. In the properties dialog box that opens, go to the Shortcut tab and click on the Advanced button. In the window that opens, check the box next to Run as administrator, click OK, and in the properties window click Apply and OK.

Windows 7 includes extensible command line interface shell, Windows PowerShell. It can be used instead of the standard command line. Launching Windows PowerShell is as easy as running a regular command line (cmd.exe): Start - All Programs - Accessories - Windows PowerShell.

By running the command line, you can see list of most frequently used commands. To do this, enter the help command and press the Enter key. A list of available commands will open. To get more information about a command you're interested in, type help command_name, for example, help tree. If you need to get information about a specific utility, the utility_name /? construct will help, for example, ping /?.

Command line - quite a useful Windows tool, which can be useful in various situations. And the next time the provider's technical support representative asks you to open the command line and check the ping, you will not have the question “How to open the command line?”

Many people think that working with the command line is only for programmers. This is wrong. An ordinary computer user may also need to access this software product.

The command line “connects” you and the operating system of your equipment. By entering certain commands, you can perform various utility tasks. Only the administrator has full rights to perform a number of actions, so it is recommended to run the command console on his behalf. Visually it is a black field with a blinking cursor. How to call the command line?

How to open the command line: Start menu

The most common way to access the string is through the Start menu. It is important to note that to open the command console, it is not enough to simply click on it with the mouse. If you want to be able to set any commands, launch the application as an administrator. To do this, right-click on the “Command Prompt” icon and select “Run as administrator” from the drop-down list.

Standard programs

  • Click on the “Start” button.
  • In the window that appears, select “All programs”.
  • Next, find the “Standard” folder.
  • Click on “Command Prompt” (right click).

Search string

  • Go to the Start menu.
  • In the search bar, which is located at the bottom of the table that opens, write “cmd”.
  • Press the Enter key.
  • Right-click on the “Command Prompt” item.

If the search bar is not displayed in the Start menu, open it and simultaneously press the Win and R keys. A line will appear in which you enter “cmd” and click the “Ok” button. With only one caveat - with this method of calling, the command console will start immediately and will be deprived of administrator rights.

How to open the command line: context menu of any folder

From your desktop, you can launch cmd.exe without going to the Start menu.

  • Hold down the Shift key and right-click on any folder.
  • In the drop-down list, select the “Open command window” item.
  • Choose it.
  • The command line appears on the screen (a black window-box with a blinking cursor).


How to open the command line: Windows 8.1

If you are a Windows 8 user, then the implementation of the proposed options will be slightly different.

1 way

  • Open the Charms Bar. To do this, you need to move the mouse cursor to the right side of the screen or type the combination Windows + C from the keyboard.
  • Click the search icon.
  • In the line that appears, write “command line” or “cmd”.
  • Next, right-click on the desired icon - “Run as administrator.”


Method 2

  • Open “All applications” (analogous to “All programs” in previous versions of the OS). To do this, press the Ctrl + Tab key combination or right-click on any free space on the screen and select “All applications”.
  • In the list that appears, find the “Command Line” icon.
  • Click on it with the mouse (right click) and stop at the “Run as administrator” item.


3 way

  • Windows 8.1 allows you to return the interface to its “familiar” appearance. In the lower left corner, right-click on the square icon. In the list that appears, select “Desktop”. This gives the desktop a classic look.
  • Press the “Start” button (or the Windows + X key combination) and type “command line”.
  • Or go to the Windows system directory – System32. Find the cmd application. Right-click on its icon and select “Run as administrator” from the list that appears.


Command Prompt is a program that allows you to execute commands and batches of commands in text mode. Using the command line, you can run other programs, make changes to operating system settings, view system information, and perform other actions related to computer management.

Many users, having heard about the command line, ask a completely logical question: how to open the command line. In this article we will describe several ways to launch the command line in the Windows operating system.

Method number 1. Call the command line using the Start menu.

The start menu is designed to launch programs. Since the command line is also a program, it can also be called from. To do this, open the Start menu - All Programs - Accessories - Command Prompt.

Method number 2. Call the command line using the “Run” menu.

In the operating system, there is such a way to launch programs as the “Run” menu. To open this menu, use the Windows + R key combination. After this, the “Run” window will open in front of you.


In this window you need to enter the command “cmd” and press the enter key.

Method number 3. Call the command line using search.

The Windows 7 and Windows 8 operating systems have an excellent search system. With its help you can find any file or program.

If you are using Windows 7, open the Start menu and type “Command Prompt”. After this, the operating system will find the desired program and offer to open it.

If you are using Windows 8, then you need to search for the program on the start screen. Go to the start screen and type "Command Prompt". After this, run the program that the operating system offers you.

Method number 4. Call the command line using the context menu.

Everyone knows how to open the context menu. To do this, just right-click on the file or folder. But not everyone knows that the context menu has hidden functions. In order to see all the available functions of the context menu, you need to hold down the Shift key before calling it.

So, in order to call it using the context menu, you need to hold down the Shift key and right-click on any folder or drive. After this, you need to select the “Open command window” function.

This method of calling the command line is also convenient because in this case the command line will start working from the folder or drive you selected.

Method number 5. Open the command line directly.

As a last resort, you can directly. To do this, go to the C:\Windows\system32\ folder and run the cmd.exe file.

This article will describe three main ways to open the command line in any version of the Windows operating system. Recommendations will be given regarding the practical use of this or that method.

In what cases might it be necessary?

When personal computers ran the MS-DOS operating system, the question of how to call the command line was not relevant. At that time, the user’s work with the PC was carried out using a specific set of commands, each of which was responsible for a strictly defined action. For example, the “format a:” command allowed you to completely format a 3.5-inch floppy disk. This type of management organization has one significant drawback: to perform operations you need to remember and know many commands. To solve this problem, Microsoft has visualized the interface in its later operating systems. As a result, it was enough to point the manipulator pointer at the desired object and perform certain actions. But not all operations are performed this way. For example, the “PING” command allows you to test the state of the local computer network, check its functionality, and this can only be done through the command line. Also, using this OS component, you can format any drive. And the functioning of various DOS applications cannot be organized differently in the latest versions of Windows operating systems.

Methods

There are the following options for how to call the command line:

    Using the Start menu.

    Using a special set of keys.

    Using Explorer.

It is in this sequence that methods for solving this problem will be further considered and the one that is best used in practice will be selected.

Start Menu

The simplest way to launch the command line is to use the Start key. But not all Microsoft operating systems have such an interface element. For example, Windows 8 and Windows 8.1 cannot boast of its presence. As a result, this method is no longer applicable to them.

The algorithm for solving this problem in this case is as follows:

    Click the “Start” button. This can be done using the left key of the manipulator, or using the corresponding button on the keyboard (it shows the OS logo).

    In the list that opens, select “All programs”. This operation can also be performed using the keyboard (use the navigation keys with arrows and press Enter at the end) or using a manipulator (point the pointer and press its left button).

    In a similar way, select the “Service” item.

    At the next stage, select “Command Line”.


Using the keyboard

More complex than using the Start menu is the method that is based on the use of the keyboard. In this case, you need to remember one key combination. But, on the other hand, this method is the most universal and works on all versions of the operating system, including 8 and 8.1. And the order of its execution is as follows:

    Switch the input language to English.

    At the next stage, hold down the Win key (with the Microsoft operating system logo) and, without releasing it, click on the English letter R. The “Run” window will open.

    Move the cursor to the input field of this window using the manipulator.

    Type the command “CMD” and press Enter.

After this, the corresponding window will open and you can enter command line commands into it.


Through "Explorer"

This is the most difficult way to start. We perform the following actions:

    Launch Explorer in any convenient way. This can be done using the Win and English key combination E or by clicking the manipulator pointer on its icon from the desktop.

    In the window that opens, in the right column, go to the drive with the operating system (usually “C:”).

    At the final stage, in the open directory you need to find a file called “CMD.EXE” and launch it by double-clicking the left button of the manipulator.

In the future, a familiar window will open in which you can enter command line commands. As an alternative, you can use the address bar of Explorer and type the previously given path there. But this is not entirely convenient, since you need to constantly remember an impressive set of symbols.

Now let's say a few words about how to find out the complete internal list of commands. The command line allows you to solve this problem easily and simply. To do this, simply enter the word “help” and press Enter. In response, a complete list of internal commands will appear. That is, these are those that are built into the MS-DOS operating system emulation shell itself. There are also external commands. These are not only command line programs, but also any other Windows OS application. In this case, go to the directory where the program is installed using the “CD directory name” command. For example, we need to run the program soffice.exe, located in the Program files directory on drive D. In this case, the sequence of commands is as follows:

C:\ D: /*go to partition D of the hard drive*/.

D:\ CD Program Files /*go to the Program Files directory*/.

D:\Program Files\ soffice.exe /*launch the soffice.exe application*/.

At the end of each line, do not forget to press Enter - confirmation of the actions taken. On the right, flash lines are bounded by comments that explain what is being done.


Which option is better?

This material describes three main ways to open the command line in Windows operating systems. From the standpoint of simplicity and versatility, in practice it is best to use the second of them, which is based on a special key combination and the use of the Run window. This method works in all versions of the OS without exception. And when implementing it, it is necessary to perform a minimum number of manipulations. Its only drawback is to remember the special key combination Win+R. But it's not that difficult. In addition, the Win button is used in many other combinations, for example, if you press the English E together with it, “Explorer” will launch. Thus, it is this method that is recommended to be used in practice. Good luck!

Hello friends! Are you looking for how to run Command Prompt as Administrator? Are you looking for a simple and working method?! I think you have come to the right place. Ask why, but the fact is that I just decided to write instructions on how a user could independently launch cmd as an administrator without any problems.

The idea for writing the material was a question from a good friend. Of course, I told him how best to do it. A few days passed, and I thought, why not write instructions so that any user can easily launch cmd as an administrator and execute the necessary commands in it.

I will try to tell you in simple, accessible language all the possible ways to launch the command line in Windows 7. And, believe me, there are quite a few of them. There are simple ways, and there are a little more complicated ones. All methods are arranged in ascending order. This will make it much easier to choose the one you need and is suitable for your case.

Ideally, you don’t have to use all of the methods listed, take a couple and go. This will be enough. My advice to you is to skim through all the methods for general development, in case it comes in handy. There is a situation when it is convenient for a user to launch from a desktop shortcut rather than search in the OS. The choice is up to you.

From time to time we have to run cmd in windows with administrator rights or, in other words, a privileged window. By default, this window opens with limited functionality and some commands cannot be executed, that is, no changes can be made.

This was done for a reason; it is a kind of protection for the operating system, because... Some commands affect the boot and normal operation of Windows.

Situations are different, and the needs are different, situations arise when you need to execute a particular command on the command line, and not just like that, but so that you have administrator rights. To make changes.

Note: Be careful when executing commands, as... changes are made directly to the OS. And it can disrupt its performance! If you don’t know what this command is responsible for, do not execute it with administrator rights.

Since launching cmd is different in all versions of Windows, we will look at several methods in more detail.

Let's go)

Launch using search

This method will work in Windows 7 and Windows Vista, since they are the only versions of Windows that support search in the Start menu.

Right-click on the icon and select from the context menu


As a result, a command prompt window should open with the title – "Administrator: Command Prompt or Administrator:C:\Windows\System32\cmd.exe"


Open the command line from the Start menu

This method is most likely a duplicate of the first method, a slightly different launch location, but as a launch method it has a place and I also decided to talk about it.

Opening "Start > All Programs > Accessories" looking for "Command line"


Right-click and select the item in the context menu "Run as administrator"

As a result, we get a privileged window for entering commands that opens.

Open CMD from the windows system folder

The command line can be launched as a regular program in Windows, this means that we can find the startup file in the system folder and run from there.


Identify and search for the file cmd.exe in the corresponding folder:

For windows 32 bit cmd.exe is located: \Windows\System32

For windows 64 bit cmd.exe is located: \Windows\SysWOW64

Note: Command line, namely the startup file inWindowsx64 is also available insystem32 and inSysWOW64. So you can run it from any folder, most importantly as an administrator.

Once you find it, right-click on the file and select the item from the menu "Run as administrator"

That's it.

Command Prompt in Administrator Mode Using Task Manager

You can use the launch method just as easily as the previous ones, to do this, press on the keyboard Ctrl+Alt+Del and select launch task manager, in the window that opens, select File - New task


In the line type cmd then check the box Create a task with administrator rights. Click OK. The command line will start with privileged rights, or in other words, administrator rights. With which you can make changes to the system.

For the method of launching from the task manager, you can also use simplified launch, in which you do not need to type anything, just open the task manager, then press and hold the key on the keyboard Ctrl click File - New task (Run...) After which the command line will open with administrator rights.

Create a command line shortcut on the desktop

And in conclusion, as a bonus, I decided to tell you an interesting way in terms of implementation. Or maybe not with the implementation, but with the availability of the launch method. In order to create a cmd shortcut on the desktop and then always run it with administrator rights.

Right-click in an empty area on the desktop and select from the context menu Create > Shortcut



In the next window you need to specify a name for the shortcut to be created, in my case I specified Command Line (Administrator), and press Ready. But that's not all, you need to set the value to run, in our case with administrator rights.


Right-click on the newly created shortcut and select Properties. In the window, click on the button Additionally, which is located below. And check the box Run as administrator, Next, click the OK button 2 times and try to launch it.


A cmd window will open with administrator rights. As you can see in the window title. This method will be useful if you often use the command line and make changes to the system.


P.S. Let's summarize what has been done. As a result, we get 5 easy ways to launch the command line with administrator rights. All methods are completely working and applicable, so you can choose the one that suits you and use it, plus you can tell your friends and relatives, anyone. Some people just don’t know what the command line is and how it starts.

If you know other ways to launch cmd with admin rights, write in the comments or via feedback, we will add useful information to the article. And also leave your comments and suggestions on the article. Always welcome.

When working with Windows, it is quite common to read instructions like “Open the command line...” or “Type the command in the console...”, but in order to take advantage of such valuable recommendations, you need to know how to open this command line (console) . In this article I will give several ways to do this. They all open a window with a command line terminal. Depending on your habits, you can choose any of them.

Method one. Open the console using the Run window.

This method is universal and suitable for all versions of the Windows operating system.

To open the Run window, press the key combination Win + R.

In order to call the console, you need to enter the cmd command and press Enter on the keyboard or click on the “OK” button:

Method two. Open the console using the “Start” menu and selecting “Standard programs” from the list

In order to use this method, you need to click on the “Start” button, usually located in the lower left corner of the monitor. After that, click on the “All programs” link:

In the drop-down list of programs, you need to find the “Standard” folder, click on it and select the “Command Line” program in this folder:

Method three. Open the console by searching in the Start menu

This method of opening the Windows Command Prompt is similar to the previous one. However, there are differences. After clicking on the “Start” button, you need to type cmd in the search bar. After this, you need to select the cmd.exe program in the “Programs” list found:

Method four. Open the console by finding the program file in Explorer

It’s far from the most convenient way, but who knows, maybe there are fans of finding files in Explorer and opening them exactly where they are located in the file system. To do this, we will need to open Explorer and know the location of the command line program file.

The cmd.exe program is located in the C:\Windows\system32 directory - once you find it, you can open it by double-clicking:

What does the Command Line or Winows Console actually look like?

In principle, the four methods described above for opening the console should be enough for all occasions ( even without a keyboard or mouse), all that remains is to understand what the Windows console looks like in order to understand that what was opened was exactly what you ordered. And she looks like this: