How to open a folder on the command line on Windows?

The command line is a standard Windows tool that allows you to control a personal computer through text commands, and not through a graphical interface. The functionality of windows with convenient buttons and a nice-looking design is sometimes not enough, and even a novice user will sooner or later encounter a command line. This article describes how to open a folder on the command line and what functions can be performed with it using text commands.

Open command line

How to open a folder




First you need to launch a command prompt window. There are several ways to do this.

  1. Through the start menu. You need to open the menu and find the "Utilities" section. Here, double-click on the line to launch the application. If you need to run the program as administrator, then select the appropriate item in the context menu.
  2. Through the search bar. In the search on the taskbar, you can type cmd or "command line", and then click on the result of the RMB search. In the menu, select the launch item with administrator rights.
  3. The third option is a command in the Run application . To start the program, use the key combination Win + R, and in the line type cmd and press Enter. The utility will start immediately with administrator rights.

Windows 10 has an extended version of PowerShell, which can be launched in the same ways, only in the case of the Run application, you must enter powershell.





How to open a folder on the command line?

Command line




Now - to enter the commands. To do this, you need to type cd, put a space and do not press Enter to apply the command. After that, you should register the path to the required directory. For example, to open the System32 folder on the system partition, you would type cd C: / WINDOWS / System32 / and press Enter.

So you can open the folder on the command line and navigate through directories. To do this, use a number of useful commands:

  • cd .. - go one level higher;
  • cd \ - go to the root directory of the hard drive;
  • cd / d - change directory or hard disk (or all at the same time).

Remembering these combinations, you can travel to directories and run programs, open files, edit folders, and so on. For help with other useful commands, type help and press Enter.

How to open a command prompt in a folder on Windows 10?

In order not to manually register the path to the directory through cmd, you can run the command line in the folder itself. In this case, the starting point for the commands will be the current directory, and you just have to perform the necessary operations. In the latest update, the default context menu for Windows 10 left only the item "Open the PowerShell window here."

Folder open option




To start, you need to go to the folder through the explorer and with the Shift key held down, click RMB on an empty spot. In the context menu, select the above item. After that, a command line will appear with a pre-defined path to the directory.

You can also open PowerShell through Explorer as follows:

  • go to the directory window;
  • click on the "File" button;
  • In the menu that opens, select "Launch Windows PowerShell."

Now you know how to open a folder through the command line in Windows and vice versa. Both options are relevant in recent updates of Windows 10 and can be useful to a computer user at any time.




All Articles