Last Updated on April 22, 2024

提及 Microsoft Windows 中的 Command Prompt,我们可能需要一整天来解释它是什么以及如何使用它!所以,在这篇文章里,我们会给你一个全面的指南,首先让你对 Windows 命令提示符有个大概了解,然后教你如何在 Windows 10 中打开它。

Page content:

What is the Windows Command Prompt?
10 Quick Ways to Open Command Prompt (Including Shortcuts)
How to Use Alternative Tools to the Command Prompt

What is the Windows Command Prompt?

As you can see in the image, this is the Command Prompt window that you'll see when you first launch it. Command Prompt can also be referred to as the Windows command processor, command shell, or simply cmd prompt, and you might see another term for it – cmd.exe – thrown around as well.

Command Prompt window

Technically, the Command Prompt is the text-based screen interface in most Windows operating systems, such as Windows 10, 8.1, 8, 7, Vista, and XP. It consists of an input field with a blinking cursor where users type commands. Users can automate tasks by employing various commands through scripting and batch files. Most commands are utilized to address certain Windows issues or perform advanced administrative functions, like managing hard drives and partitions, controlling networks, modifying files, and more.

Sure, here are some basic CMD commands for Windows (assuming the UTF-8 encoding): 1. **chkdsk**: Checks and repairs file system errors on a disk. 2. **dir**: Displays a list of files and subdirectories in a directory. 3. **attrib**: Modifies file attributes such as hidden, read-only, system, and archive. 4. **chkntfs**: Checks for scheduled Chkdsk operations on startup. 5. **diskpart**: A powerful tool to manage disks and volumes, including creating, formatting, and deleting partitions. 6. **format**: Formats a disk or volume, preparing it for use. 7. **copy** / **xcopy**: Copies files from one location to another. `xcopy` offers more options, like copying directories and subdirectories. 8. **ipconfig**: Displays network configuration information, including IP addresses, DNS settings, and more. These are just a few examples; there are many more commands available in the Command Prompt.

*** Did you know? A Partition Manager tool can take the place of the Windows Command Prompt for certain tasks. Instead of trying to learn complex command-line scripts, you can resize, format, delete, wipe data, copy one disk to another, convert FAT32 to NTFS, or change a disk from Basic to Dynamic… with just a few clicks!

< a id="2" name="2">10 Quick Ways to Open the Command Prompt (including Shortcuts)

How do you open the Command Prompt in Windows 10? Well, cmd.exe is the default command-line interpreter in Windows 10, and all you need to do is figure out the right way to access it. Windows 10 gives you nearly a dozen ways to get to the Command Prompt. Let's take a quick look.

Quick Methods Quick Methods | | 1. [[4] Windows + X Keyboard Shortcut](#4) 2. [[5] Start Menu](#5) 3. [[6] Open Command Prompt via Search](#6) 4. [[7] Windows + R Keyboard Shortcut](#7) 5. [[8] Command Prompt in File Explorer Address Bar in Windows 10](#8) | 6. [[9] File Explorer File Menu](#9) 7. [[10] System32 Folder in Windows](#10) 8. [[11] Open Command Prompt with Cortana (Requires Microphone)](#11) 9. [[12] Task Manager](#12) 10. [[13] Open Command Prompt at Startup](#13)

[4] Use the Windows + X shortcut key to open the Command Prompt

Press the Windows + X keys to open the Power User menu, then double-click Command Prompt or Command Prompt (Admin) to open Command Prompt.

Open the Command Prompt from the Power User menu

Open the Command Prompt from the Start menu

Click the Start menu, then scroll down and open the “Windows System” shortcut folder. Expand the folder and click on “Command Prompt” to open it.

Open the Command Prompt from the Start menu: Open the Command Prompt from the Start menu

Open the Command Prompt through search.

Type cmd [Option 1] or Command Prompt [Option 2] into the Windows 10 search bar. "Command Prompt" will appear in the "Best match" section. Double-click it to open Command Prompt, or right-click it and select "Run as administrator."

Open Command Prompt via Search

Use the Windows + R shortcut key to open the Command Prompt.

Please press the Windows key + R to open the Run box, then type 'cmd' in the box, and then click 'OK' or press the Enter key.

Open Command Prompt in Run

5. Open Command Prompt in the File Explorer Address Bar in Windows 10

Press ⊞ Win+E to open File Explorer. Type cmd into the address bar, then press ↵ Enter.

Open Command Prompt from Windows File Explorer Open Command Prompt from Windows File Explorer

Open Command Prompt from the File Menu in Windows Explorer

This time, click the “File” menu in File Explorer, and select “Open Command Prompt.” Next, choose “Open Command Prompt” or “Open Command Prompt as Administrator.”

Open Command Prompt from the File Menu in File Explorer Open Command Prompt from the File Menu in File Explorer

Open the Command Prompt from the Windows System32 folder

Press the Windows key + E to open File Explorer. Click on “This PC” (or “Computer”), then navigate to the C: drive (the partition where Windows is installed) > Windows > System32, and scroll down until you find cmd.exe. Double-click or right-click on cmd.exe and select “Run as administrator” to open Command Prompt.

Open Command Prompt from the System32 folder Open Command Prompt from the System32 folder

8. Ask Cortana to open the Command Prompt (requires a microphone)

Say “Hey, Cortana” to activate Cortana, and then ask her to “Open Command Prompt.” When prompted, respond with “Yes.”

Ask Cortana to open Command Prompt

Open the Command Prompt from Task Manager

Press Ctrl+Alt+Del(Delete key) to open the Task Manager. Click on the "File" tab, then select "New Task". This will bring up a "Run" dialog box. Type in cmd and press Enter.

Open the Command Prompt from Task Manager:

10. Open the Command Prompt at Startup

    • In Windows 10, click Start > Settings > Update & Security > Recovery > Restart now. • On the Choose an option screen, click Troubleshoot. • Click Advanced options, then click Command Prompt.

Boot to Command Prompt

How to Use the Command Prompt Alternative Programs

There you have it – ten different ways to open the Command Prompt in Windows, all of which are straightforward, although some are less direct than others. Once you've launched the Command Prompt, you can type in the right command and get to work.

If you're a computer professional or an advanced user with a solid background in computers, you can do a lot with Windows, your computer, hard disk drives, removable flash drives, or network drives – and troubleshoot many problems with these devices and the operating system. But if you don't belong to this category and are not very familiar with command lines, can you still manage your disks as you would at a command prompt?

This is where a partition manager comes in handy. Many tasks that you can do with Windows Command Prompt can also be handled by this nifty partition magic software. Simply download and install the program on your Windows computer, and you can explore its features yourself. This user-friendly and comprehensive disk and partition management tool is a great assistant to have.

What can you do with Partition Master?

    • Migrate/Move partitions
    • Format drives to FAT32, EXT2/3/4, NTFS, and more
    • Convert FAT32 to NTFS without data loss
    • Convert basic disks to dynamic or vice versa
    • Clone/Copy one drive to another
    • Migrate OS to HDD/SSD without reinstalling Windows
    • Combine multiple hard disk partitions into one
    • And see more in the video tutorials