Как переходить в директории в командной строке windows

Как перемещаться по каталогам посредством командной строки. В этой статье рассказывается, как перейти в другую папку (каталог) в командной строке Windows. Чтобы работать с командной строкой, необходимо использовать учетную запись...


Загрузить PDF


Загрузить PDF

В этой статье рассказывается, как перейти в другую папку (каталог) в командной строке Windows. Чтобы работать с командной строкой, необходимо использовать учетную запись администратора.

  1. Изображение с названием Change Directories in Command Prompt Step 1

    1

    Откройте меню «Пуск». Для этого щелкните по логотипу Windows в нижнем левом углу экрана или нажмите клавишу Win на клавиатуре.

    • В Windows 8 переместите указатель мыши в верхний правый угол экрана и щелкните по отобразившемуся значку в виде лупы.
  2. Изображение с названием Change Directories in Command Prompt Step 2

    2

    В строке поиска введите командная строка. Значок утилиты командной строки отобразится над строкой поиска.

  3. Изображение с названием Change Directories in Command Prompt Step 3

    3

    Щелкните правой кнопкой мыши по значку командной строки. Он имеет вид черного квадрата. Откроется контекстное меню.

  4. Изображение с названием Change Directories in Command Prompt Step 4

    4

    Нажмте Запуск от имени администратора. Эта опции находится в верхней части раскрывшегося меню. Откроется командная строка с правами администратора.

    • В открывшемся окне с предложением подтвердить ваши действия нажмите «Да».
    • Нельзя запустить командную строку от имени администратора, если вы работаете на компьютере, у которого есть ограничения, который находится в публичном месте или подключен к локальной сети (например, в библиотеке или в школе), то есть в том случае, когда вы пользуетесь гостевой учетной записью.

    Реклама

  1. Изображение с названием Change Directories in Command Prompt Step 5

    1

    Введите cd . После «cd» обязательно добавьте пробел. Эта команда, которая представляет собой сокращение от «change directory» (изменить каталог), является основной командой для перехода в другой каталог.

    • Не нажимайте клавишу Enter.
  2. Изображение с названием Change Directories in Command Prompt Step 6

    2

    Определите путь к нужному каталогу. Путь к каталогу похож на перечень папок. Например, если нужным каталогом является папка «System32», которая находится в папке «WINDOWS» на системном диске, путь будет таким: «C:WINDOWSSystem32».

    • Чтобы выяснить путь к папке, откройте окно «Мой компьютер», дважды щелкните по значку жесткого диска, перейдите в нужную папку, а затем скопируйте информацию из адресной строки Проводника (сверху).
  3. Изображение с названием Change Directories in Command Prompt Step 7

    3

    Введите путь к каталогу. Сделайте это после команды «cd». Убедитесь, что между «cd» и путем к каталогу есть пробел.

    • Например, команда может выглядеть так: cd WindowsSystem32 или cd D:.
    • По умолчанию местоположением всех папок считается жесткий диск (например, «C:»), поэтому букву жесткого диска вводить не нужно.
  4. Изображение с названием Change Directories in Command Prompt Step 8

    4

    Нажмите Enter. Так вы перейдете в нужный каталог.

    Реклама

Советы

  • Изменить каталог необходимо, чтобы отредактировать или удалить файл.
  • Некоторыми общими командами для работы с каталогами являются следующие:
    • D: или F: – изменить каталог на дисковод или подключенный флеш-накопитель.
    • .. – переместиться из текущего каталога на одну папку вверх (например, из «C:WindowsSystem32» в «C:Windows»).
    • /d – одновременно изменить диск и каталог. Например, если в командной строке вы находитесь в корневом каталоге диска «D:», введите «cd /d C:Windows», чтобы перейти в папку «Windows» на диске «C:».
    • – перейти в корневой каталог (например, системного диска).

Реклама

Предупреждения

  • Попытка запустить команду, связанную с определенным файлом или папкой, из другого каталога приведет к ошибке.

Реклама

Об этой статье

Эту страницу просматривали 663 706 раз.

Была ли эта статья полезной?

24.06.2018

Просмотров: 118827

Для того, чтобы открыть папку или перейти в какой-либо локальный диск, пользователи зачастую использую Проводник или файловой менеджер, такой как Total Commander, Norton Commander или Far Manager. Однако бывают случаи, когда открыть стандартным способом директорию или диск невозможно. В таком случае на помощь приходит командная строка.

Читайте также: Как пользоваться файловым менеджером Total Commander?

Команды для открытия папки или диска через командную строку?

Для открытия директории и диска в консоли используется специальная команда «change directory», которая применяется не только в DOS и Windows, но также и в консоли Unix и других операционных системах.

На практике команды для командной строки будут выглядеть следующим способом:

  • cd User, где cd – change directory, а User – название папки.

  • Если нужно вернуться или перейти по древу на позицию (папку) выше, то нужно ввести cd .. (две точки).

Для того, чтобы перейти в другой диск, то команды будут следующими (выполняется с параметром D)

  • cd /D d:softik, где – cd /D – это обязательная команда на переход, d: — это диск, а softik – папка на нужном диске.

  • Если просто ввести букву и двоеточие, то также можно перейти в нужный диск.

  • Далее просто вводим название директории с приставкой cd.

Это только стандартные команды для открытия папок и дисков. Запуск exe файлов в открытых директориях можно выполнить командой start.


Download Article


Download Article

Do you need to access a certain folder at the Windows command prompt? The command prompt might seem archaic, but it’s actually really easy once you learn some basic commands. This wikiHow article will show you how to use the «cd» command to open a folder at the Windows command prompt. We’ll also show you a cool trick that will help you instantly open a command prompt from any folder using Windows File Explorer.

  1. Image titled Open a Folder in Cmd Step 1

    1

    Press Win+E to open File Explorer

    Image titled File_Explorer_Icon.png

    . File Explorer is the default file browser for Windows. To open File Explorer, press the Windows key and «E» at the same time.

  2. Image titled Open a Folder in Cmd Step 2

    2

    Navigate to the folder you want to open in Command Prompt. Use File Explorer to browse to the folder you want to open. Then click the folder to open it.

    Advertisement

  3. Image titled Open a Folder in Cmd Step 3

    3

    Type cmd in the address bar and press Enter. This opens a new Command Prompt window inside the folder you currently have open in File Explorer.[1]

  4. Advertisement

  1. Image titled Open a Folder in Cmd Step 4

    1

    Press Win+E to open File Explorer

    Image titled File_Explorer_Icon.png

    . File Explorer is the default file browser for Windows. To open File Explorer, press the Windows key and «E» at the same time.

  2. Image titled Open a Folder in Cmd Step 5

    2

    Navigate to the folder you want to open in Command Prompt. Using the panel on the left side of File Explorer, click the folder you want to open. Then click the folder to open it.

  3. Image titled Open a Folder in Cmd Step 6

    3

    Hold Shift and right-click any blank space in the folder. This displays a context menu next to your mouse cursor.

  4. Image titled Open a Folder in Cmd Step 7

    4

    Click Open command window here. This opens the Command Prompt inside the folder.

    • On newer versions of Windows, this option has changed to Open PowerShell window here. PowerShell is a more advanced version of Command Prompt. Most commands that work in Command Prompt will also work in PowerShell.[2]
  5. Advertisement

  1. Image titled Open a Folder in Cmd Step 8

    1

    Click the Windows Start button

    Image titled Windowsstart.png

    . It’s the icon that has the Windows logo. It is in the lower-left corner by default. This opens the Windows Start menu.

  2. Image titled Open a Folder in Cmd Step 9

    2

    Type CMD. This displays the Command Prompt in the Windows Start menu.

  3. Image titled Open a Folder in Cmd Step 10

    3

    Click the Command Prompt icon

    Image titled Windowscmd1.png

    . It has an icon that resembles a black screen with a white text cursor. Click the Command Prompt icon in the Windows Start menu to open Command Prompt.

  4. Image titled Open a Folder in Cmd Step 11

    4

    Type the drive the folder is in and press Enter. If the folder you want to open is on a different drive other than the drive your Windows operating system is installed on, you need to switch to that drive in Command Prompt. To do so, type the letter of the drive followed by a colon (e.g. «D:») and then press Enter.

    • You only need to do this if the folder is not located on the drive that Windows is installed on (which is usually the «C:» drive.)
  5. Image titled Open a Folder in Cmd Step 12

    5

    Type cd followed by a space. The «cd» command is used to change directories in the Windows command prompt. Type «cd» followed by a space, but do not press Enter just yet.

  6. Image titled Open a Folder in Cmd Step 13

    6

    Type the address of the folder after the space and press Enter. You’ll need to include every folder and sub-folder the folder is located in. Place a backslash («») in front of each folder name. For example; «cd UsersusernameDocuments.»

    • If you are not sure what the path of the folder is, you can navigate to the folder in File Explorer. Right-click the address bar at the top and click Copy address as text. You can then press Ctrl + V to paste the path of the folder directly into Command Prompt right after the «cd» command.
  7. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

About This Article

Article SummaryX

1. Click the Windows Start menu and type «cmd».
2. Click the Command Prompt icon to open it.
3. Type «cd» followed by a space.
4. Type the address of the folder after the space (i.e. «/Users/username/Documents.»)
5. Press Enter.

Did this summary help you?

Thanks to all authors for creating a page that has been read 172,576 times.

Is this article up to date?


Download Article


Download Article

Do you need to access a certain folder at the Windows command prompt? The command prompt might seem archaic, but it’s actually really easy once you learn some basic commands. This wikiHow article will show you how to use the «cd» command to open a folder at the Windows command prompt. We’ll also show you a cool trick that will help you instantly open a command prompt from any folder using Windows File Explorer.

  1. Image titled Open a Folder in Cmd Step 1

    1

    Press Win+E to open File Explorer

    Image titled File_Explorer_Icon.png

    . File Explorer is the default file browser for Windows. To open File Explorer, press the Windows key and «E» at the same time.

  2. Image titled Open a Folder in Cmd Step 2

    2

    Navigate to the folder you want to open in Command Prompt. Use File Explorer to browse to the folder you want to open. Then click the folder to open it.

    Advertisement

  3. Image titled Open a Folder in Cmd Step 3

    3

    Type cmd in the address bar and press Enter. This opens a new Command Prompt window inside the folder you currently have open in File Explorer.[1]

  4. Advertisement

  1. Image titled Open a Folder in Cmd Step 4

    1

    Press Win+E to open File Explorer

    Image titled File_Explorer_Icon.png

    . File Explorer is the default file browser for Windows. To open File Explorer, press the Windows key and «E» at the same time.

  2. Image titled Open a Folder in Cmd Step 5

    2

    Navigate to the folder you want to open in Command Prompt. Using the panel on the left side of File Explorer, click the folder you want to open. Then click the folder to open it.

  3. Image titled Open a Folder in Cmd Step 6

    3

    Hold Shift and right-click any blank space in the folder. This displays a context menu next to your mouse cursor.

  4. Image titled Open a Folder in Cmd Step 7

    4

    Click Open command window here. This opens the Command Prompt inside the folder.

    • On newer versions of Windows, this option has changed to Open PowerShell window here. PowerShell is a more advanced version of Command Prompt. Most commands that work in Command Prompt will also work in PowerShell.[2]
  5. Advertisement

  1. Image titled Open a Folder in Cmd Step 8

    1

    Click the Windows Start button

    Image titled Windowsstart.png

    . It’s the icon that has the Windows logo. It is in the lower-left corner by default. This opens the Windows Start menu.

  2. Image titled Open a Folder in Cmd Step 9

    2

    Type CMD. This displays the Command Prompt in the Windows Start menu.

  3. Image titled Open a Folder in Cmd Step 10

    3

    Click the Command Prompt icon

    Image titled Windowscmd1.png

    . It has an icon that resembles a black screen with a white text cursor. Click the Command Prompt icon in the Windows Start menu to open Command Prompt.

  4. Image titled Open a Folder in Cmd Step 11

    4

    Type the drive the folder is in and press Enter. If the folder you want to open is on a different drive other than the drive your Windows operating system is installed on, you need to switch to that drive in Command Prompt. To do so, type the letter of the drive followed by a colon (e.g. «D:») and then press Enter.

    • You only need to do this if the folder is not located on the drive that Windows is installed on (which is usually the «C:» drive.)
  5. Image titled Open a Folder in Cmd Step 12

    5

    Type cd followed by a space. The «cd» command is used to change directories in the Windows command prompt. Type «cd» followed by a space, but do not press Enter just yet.

  6. Image titled Open a Folder in Cmd Step 13

    6

    Type the address of the folder after the space and press Enter. You’ll need to include every folder and sub-folder the folder is located in. Place a backslash («») in front of each folder name. For example; «cd UsersusernameDocuments.»

    • If you are not sure what the path of the folder is, you can navigate to the folder in File Explorer. Right-click the address bar at the top and click Copy address as text. You can then press Ctrl + V to paste the path of the folder directly into Command Prompt right after the «cd» command.
  7. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

About This Article

Article SummaryX

1. Click the Windows Start menu and type «cmd».
2. Click the Command Prompt icon to open it.
3. Type «cd» followed by a space.
4. Type the address of the folder after the space (i.e. «/Users/username/Documents.»)
5. Press Enter.

Did this summary help you?

Thanks to all authors for creating a page that has been read 172,576 times.

Is this article up to date?

Понравилась статья? Поделить с друзьями:
  • Как петь караоке через компьютер через микрофон windows 10
  • Как по userid узнать пользователя windows
  • Как переформатировать флешку после установки windows
  • Как переустановить драйвер на микрофон windows 10
  • Как петь караоке на ноутбуке через микрофон windows 10