Overview - How to Open Command Prompt in Windows 10

The Command Prompt is where you enter commands to tell the computer what to do. Typing commands into this window lets you perform tasks on your computer without using the Windows graphical interface. There are actually two ways to open the Command Prompt in Windows 10. Use the table of contents below to jump to the method you prefer.

Please provide the English content you want to translate, and I'll translate it into Chinese for you.

Solution(s) That Worked Step-by-Step Troubleshooting
1 - Can't Start Windows 10

Solution 1: Boot to Command Prompt using Windows 10 installation media...Full Steps

Solution 2: Boot to Command Prompt from Advanced Startup Options in Windows 10...Full Steps

2 - Can Start Windows 10

Solution 1: Open Command Prompt using Search in Windows 10...Full Steps

Solution 2: Open/Start Command Prompt from Settings in Windows 10...Full Steps

Part 1: How to Open Command Prompt if Windows 10 Won't Boot

If you can't start Windows 10 and fix the error, you'll need to create installation media or force your PC to shut down three times. Continue reading for details.

Method 1: Boot to the Windows 10 Command Prompt using installation media

If your PC won't start, you can use the Windows 10 installation media to open Command Prompt. With the Windows 10 Media Creation Tool, you can even get into the BIOS when Windows 10 won't start.

Step 1: Create the Windows 10 installation media

Request:

    < li > A computer with a stable Internet connection for the download.
  • A USB flash drive with at least 8 GB of free space, or a blank DVD.
  • If the ISO image is too large and you are burning it to a DVD, you will need a dual-layer (DL) DVD medium.

Step: Follow this guide to create a Windows 11/10 Media Creation Tool.

Create Windows 10 installation media

Step 2. Accessing the BIOS in Windows 10

    Insert the installation media into your Windows 10 computer and boot from it. Press F2, Del, Esc, or whatever key is necessary to enter BIOS. Navigate to the "Boot" tab and move the USB drive to the top of the boot order.

Enter the BIOS interface

Step 4. Boot to the Windows 10 setup screen

    • Press F10 to save your settings and exit the BIOS.
    • Choose your language settings, time, and keyboard, then click “Next.”
    • Click “Repair your computer” in the bottom-left corner.

Boot to the Windows installation screen

Step 5: Open the Command Prompt in Windows 10

    Click Troubleshoot > Advanced options > Command Prompt.

Boot to Command Prompt in Windows 10

Then, you will enter the Command Prompt to use the command line to repair Windows 10.

Using SFC to Repair Windows 10:

    In the Command Prompt, type D: and press Enter to switch to your computer's D drive.
Tip
Because your PC started from bootable media, the System Reserved partition on your hard drive is temporarily assigned drive letter C:. This is why the C: drive in Windows 10 is now shown as D:. This change is temporary.
    4. Type **sfc /scannow**, and then press Enter.

To fix Windows 10 boot issues like rebuild MBR, type the following command:

    • bootrec /fixmbr
    • bootrec /fixboot
    • bootrec /rebuildbcd
    These are commands used in the Windows Recovery Environment (WinRE) command prompt to troubleshoot and fix boot-related issues in Windows operating systems: 1. **bootrec /fixmbr**: This command replaces the Master Boot Record (MBR) without overwriting the partition table. The MBR is responsible for loading the boot loader, so if it's corrupted or damaged, this command can help repair it. 2. **bootrec /fixboot**: This command writes a new boot sector to the system partition. If the boot sector, which contains the actual boot loader code, becomes corrupted, this command can help restore it. 3. **bootrec /rebuildbcd**: This command scans all disks for valid Windows installations and重建 Boot Configuration Data (BCD) store. The BCD store contains information about the operating systems installed on your computer and their boot settings. If the BCD store is damaged or missing, this command attempts to recover it by detecting and adding missing entries. Remember to exercise caution when using these commands, as they directly impact the boot process of your system. Incorrect usage could result in loss of bootability or data.

Method 2: Boot to Command Prompt from Advanced Startup Options (Windows 10)

If you're encountering a blue screen or blank desktop when you start up your computer, you can fix the problem and open Command Prompt from Advanced Startup options instead. Here's how:

Step 1. Boot into the Windows 10 Recovery Environment.

First, turn on your computer and then shut it down when you see the Windows logo. Repeat this process three times. On the third try, your Windows 10 device will enter Diagnostics mode.

2. On the Recovery screen, click Advanced options > Troubleshoot > Advanced options > Command Prompt.

Boot to Command Prompt in Windows 10

Then, the command prompt will load immediately, and you can use it to perform any operations you need.

Part 2: How to Open Command Prompt if Windows 10 Can Boot

If your Windows computer or laptop is working well, this will be easier. You can search for “Command Prompt” in the search bar, or get to it from Settings. Here's how.

Solution 1: Launch Command Prompt via Search

This solution is recommended for its simplicity.

Step 1: Click on “Start,” and then type cmd into the search box.

Step 2. Right-click on Command Prompt and select Run as administrator.

Open Command Prompt in Windows 10

You should now be at the Command Prompt window.

Fix 2: Open the Command Prompt from Settings in Windows 10

Step 1: Click on "Start > Settings" to open the Settings window. Then click on "Update & Security," and select "Recovery."

Open Command Prompt from Settings

Step 2: Click on “Restart now” under “Advanced startup.” Your Windows 10 computer will now restart.

Step 3. On the Choose an option screen, click Troubleshoot 〉 Advanced options.

4. Click Command Prompt. You should now see the Command Prompt window.

Boot to Command Prompt in Windows 10

Additional Tip: How to Recover Files Deleted from the Command Prompt

When you use certain cleanup commands like the `clean` or `format` command, you stand to lose data on your drive. These command lines permanently delete files without a backup. How do you recover files deleted from Command Prompt? The answer is by using the best data recovery software - Data Recovery Wizard tool. This Data Recovery Wizard utility can recover formatted hard drive, whether deleted from the Command Prompt or files erased using Shift+Delete.

Download this all-in-one data recovery software to retrieve lost data from your computer or laptop.

Step 1. Launch the "Data Recovery Wizard." Select the drive where you lost your files and start the scan. This software lets you recover lost data from all devices, including HDD, SSD, USB drives, SD cards, flash drives, cameras, and more.

Select the location to scan

Step 2. Preview the scan results. You can click on the file type filter and choose the file types you need. The software supports over 1000 file types, such as photos, videos, documents, emails, audio files, and more.

Select the files to recover Select the files to recover

Step 3: Choose the files you want to preview. Click “Recover” and then set a location to save the recovered data.

Recover Lost Data

Conclusions

This article provides 4 ways to boot Windows 10 from the Command Prompt. If your computer won't start up, refer to Part 1. If your computer is starting up just fine, skip ahead to Part 2. Plus, if you're dealing with lost data, consider using the Data Recovery Wizard tool.