How to Open Command Prompt in Windows 10: Complete Guide and All the Tricks

Last update: 26 June, 2025
  • The Command Prompt in Windows 10 allows you to troubleshoot and manage advanced tasks.
  • There are multiple ways to access CMD, even if the system won't boot.
  • Using CMD as administrator gives access to advanced commands and deep repairs.

Windows 10 Command Prompt Tutorial

Windows 10 is undoubtedly one of the most widely used operating systems in the world, and while most tasks can be performed through its intuitive graphical interface, there are times when working directly with the command prompt—the legendary Command Prompt or CMD—offers advantages and solutions that are simply not available through conventional menus. This resource, a direct descendant of the legendary MS-DOS, remains an indispensable tool for administrators and advanced users, but it is also essential for troubleshooting, diagnosing errors, and performing automated tasks on a daily basis.

This article explains in detail and in a straightforward manner all the possible ways to open Command Prompt in Windows 10 , whether your computer boots up correctly or you're having trouble starting the system. We'll even cover how to run advanced commands to repair your PC, automate tasks, or customize your experience. You'll also discover differences between Command Prompt and PowerShell, what a CMD file is, security tips, useful commands, methods for opening it with administrator privileges, and all the options offered by this powerful black window that, although it may seem outdated, remains essential in the Windows ecosystem.

What is the Windows 10 Command Prompt and why should you know about it?

The Command Prompt is a command-line interface integrated into the Windows operating system, commonly known as CMD. Using this tool, users can type commands or scripts to interact with the operating system in an advanced way, without needing to use the mouse or rely on the standard graphical user interface.

Working from the Command Prompt (CMD) allows you to perform actions such as navigating folders, managing files, running programs, modifying settings, repairing errors, and even recovering damaged systems . Although the learning curve may seem intimidating if you've never used this tool before, mastering it can save you a lot of time and, above all, gives you access to hidden or reserved options for advanced administrative tasks.

Many people associate the Command Prompt with the old MS-DOS, and while they share similarities in their use of text commands, CMD is not a standalone operating system. Instead, it's a command interpreter that runs within Windows since the advent of the NT family (Windows 2000, XP, 7, 10, etc.). Therefore, it no longer depends on MS-DOS, but it does retain many of its commands and its minimalist, functional interface.

Main differences between CMD, PowerShell and MS-DOS in Windows 10

One of the most common points of confusion is the distinction between CMD, PowerShell, and MS-DOS. Understanding each will help you decide which one to use for each task:

  • CMD (Command Prompt): Basic command interpreter that allows you to execute system commands, scripts, and perform administrative tasks. It's straightforward and easy to use, ideal for managing files, repairing Windows, or automating simple processes.
  • MS-DOS: It was the base operating system for the first IBM PCs and compatible computers. Today, CMD emulates many of its commands, but Windows 10 no longer relies on it as an operating system. MS-DOS managed all hardware and program execution before the arrival of Windows NT.
  • PowerShell: It's a more advanced and powerful command console, designed specifically for system administrators and developers. It allows for more complex scripts, objects, advanced automation, and access to system functions not possible from CMD. Visually, it closely resembles CMD, but its capabilities and syntax are different and more sophisticated.

Don't confuse CMD with PowerShell: while both can be used to run text commands, PowerShell is designed for much broader tasks and allows you to program complete scripts with advanced logic. For most common tasks and troubleshooting, CMD remains the simplest and most effective option.

What is the Command Prompt used for? Practical uses in Windows 10

The command prompt is an extremely versatile tool with many practical applications. Some of its most common functions are:

  • Troubleshooting errors and startup problems: Allows you to run diagnostic and repair tools when the system does not start correctly.
  • Advanced file and folder management: Move, copy, delete, rename or compare files in bulk and quickly.
  • Automation and Batch Scripts: Create .cmd or .bat files to run scripts automatically.
  • Modify system settings: Change permissions, configure networks, repair the boot record, and many other advanced settings.
  • Data recovery: Recover accidentally deleted files or files after crashes using specific commands.
  • Customizing and adjusting the interface: Change window appearance, colors, fonts, cursor size…

This set of tools and commands keeps the Command Prompt essential in both home and business environments.

How to Open Command Prompt in Windows 10: Methods for All Scenarios

There are multiple ways to open Command Prompt in Windows 10 , each suited to different situations: from quick access for everyday tasks to special procedures when the system won't boot. Below, we explain each method and when you should use each one.

  Windows 11 freezes: causes and step-by-step solutions

1. Open CMD using the Windows search box

It is the simplest and fastest method when your computer is working properly.

  • Step 1: Click on the icon Home or press the Windows key on your keyboard.
  • Step 2: Write cmd o symbol of the system in the search bar.
  • Step 3: Click on the app that appears in the results. If you need administrator permissions (highly recommended for certain tasks), right-click on the result and select Run as administrator.

Using this method, you'll have the option to perform advanced tasks without restrictions if you choose to run as an administrator.

2. Access via the run window (Win + R keys)

Perfect for those who prefer keyboard shortcuts and don't want to search through menus.

  • Press the key combination Windows + R to open the Run box.
  • Write cmd and hit Enter.

This procedure opens CMD with normal user permissions. It doesn't allow administrator mode unless you manually locate the executable (cmd.exe) and run it as administrator.

3. Open Command Prompt from File Explorer

If you're already working with File Explorer and need a console at the current location:

  • Open the File Browser (hotkey: Windows + E).
  • In the address bar at the top, type cmd and hit Enter.

A CMD window will open in the current path, which is very useful for running commands directly on specific files and folders.

4. Create a CMD shortcut on the desktop

Ideal for users who use the console frequently and want to always have it at hand:

  • Right-click on the desktop and select New> Shortcut.
  • In the element location, type cmd o C:\Windows\System32\cmd.exe (both work, but the full path is preferable to ensure you point to the correct executable).
  • Click Next, name the shortcut, and complete the wizard.
  • To always open as administrator, right-click on the shortcut created, go to Properties > Shortcut > Advanced Options tab and activate Run as administrator.

This way, you'll have a permanent shortcut to open CMD with elevated privileges at any time.

5. Run CMD from the Advanced Startup or Recovery options

This method is essential when Windows won't boot properly or you need to access repair tools.

  • If the computer boots normally: go to Start > Settings > Update & security > Recovery. In section Advanced start, Click on Restart now.
  • The system will reboot and a blue screen will appear with the title Choose an option.
  • Choose Troubleshoot > Advanced Options > Command Prompt.

Another quick option is to hold down the Shift key while clicking Restart (from the power button on the Start or login screen).

In both situations, CMD will open outside the user environment, allowing for deep operating system recoveries.

6. Open Command Prompt using Windows 10 installation media

If your computer won't boot, you can use a Windows 10 installation USB or DVD:

  • Step 1: Create an installation USB or DVD by downloading the official Microsoft tool to another computer.
  • Step 2: Insert the media into the damaged PC, access the BIOS (usually by pressing F2, Del, Esc or similar at startup) and set the USB/DVD drive as the first boot device.
  • Step 3: Boot from the installation media. When the language setup screen appears, click Next and then in Repair equipment.
  • Step 4: Choose Troubleshoot > Advanced Options > Command Prompt.

You can also use the Shift + F10 combination directly on the installation screen to open CMD immediately.

This will give you access to a console with repair privileges, ideal for troubleshooting serious issues or recovering important files.

Access Safe Mode with Command Prompt

Another useful option is to start Windows 10 in Safe Mode with Command Prompt . This mode starts only essential services and launches CMD automatically so you can fix errors without interference from other programs.

  • From the advanced startup options, select Startup configuration and press Restart.
  • In the list of options, press the key F6 to access safe mode with command prompt.

It is especially useful for removing viruses, repairing critical errors, or restoring the system when the graphical interface is not working properly.

How to know if you have opened CMD as administrator and what it is for

In Windows 10, it's crucial to distinguish between opening the command prompt with normal user privileges and as an administrator . The difference is vital:

  • A standard CMD only allows you to run commands that do not affect critical areas of the system.
  • CMD as an administrator gives you full control to modify system files, repair deep errors, or install and uninstall essential components.
  Microsoft tests a free version of Office with ads and limited features

How do you know which mode you've opened it in? Easy:

  • El prompt (the line of text where you type commands) will indicate the current path. If it shows something like C:\Users\YourUser>, you are logged in as a normal user. If you see C: \ Windows \ system32>, you have opened it with administrator permissions.

Whenever you run commands to repair Windows or modify settings in depth, be sure to open the Command Prompt as an administrator. Otherwise, you may encounter crashes or access denied messages.

Customizing the Command Prompt Window in Windows 10

By default, the command prompt appears with its characteristic black window and white text , very similar to the MS-DOS aesthetic. However, Microsoft allows you to customize this window to your visual preferences:

  • Click on the icon in the upper left corner of the CMD window and select Properties.
  • From here you can change the font size and type, text and background colors, cursor size, buffer size and other visual parameters.

This customization is especially useful if you spend long hours in CMD, allowing you to adjust contrast, font size, or colors to improve readability and reduce eye strain.

What is a .CMD file and what is it used for?

Within the command prompt environment, you can store command sequences in files with the .CMD or .BAT extension . These are known as batch files and are extremely useful for automating repetitive or complex tasks.

  • A .CMD file contains a list of commands that will be executed, one after the other, when the file is called from CMD or by double-clicking.
  • They are ideal for create simple automation programs, such as backups, disk analysis, file management or network configuration.
  • You can create them with any plain text editor (e.g., Notepad) and save them with the .CMD or .BAT extension.

When you run them, Windows will interpret each command line as if you had typed it manually into the console. This way, you can chain actions together and save time every time you need to perform the same task.

Main basic and advanced commands in CMD

The Command Prompt offers a wealth of built-in commands for interacting with Windows 10. Here are some of the most useful ones and what they do:

  • cd: Change current directory.
  • dir: Lists the files and folders in the directory you are currently in.
  • copy: Copy one or more files to another location.
  • move: Move files or folders between directories.
  • from / erase: Delete files.
  • attrib: Displays or changes file attributes.
  • chkdsk: Scans and repairs errors on the hard drive.
  • sfc / scannow: Checks and repairs damaged system files.
  • bootrec: Advanced command to repair Windows startup (includes options like /fixmbr, /fixboot, /rebuildbcd).
  • shutdown: Shut down or restart your computer from the command line.
  • rstrui.exe: Launch the system restore tool from CMD.
  • systemreset –cleanpc: Restore Windows 10 to factory settings.
  • find /comp/fc: File search and comparison tools.

These commands can be combined into batch files or used separately to maintain and manage any Windows PC.

How to Use Command Prompt to Repair Windows 10

CMD becomes a Swiss Army knife when serious problems arise, such as boot failures, corrupted files, blue screens, or crashes. Here are the main recovery options using the console:

  • Repair boot sector and MBR: If Windows does not boot, run the commands
    bootrec / fixmbr
    bootrec / fixboot
    bootrec / RebuildBcd
  • Check and repair corrupted files:
    sfc / scannow to repair system files.
    DISM / Online / Cleanup Image / RestoreHealth to repair the Windows recovery image.
  • Scan and repair hard drive:
    chkdsk drive_letter: /f /r
  • Restore the system to a previous point:
    rstrui.exe
  • Restart or restore Windows 10 from the console:
    systemreset –cleanpc

These options allow you to save data, repair errors, and return the system to a functional state, even if the graphical interface is unresponsive.

How to recover deleted files using CMD and specialized software

When files are permanently deleted from CMD, after using commands like `del` , or after formatting a partition, recovery can be complicated. However, there are solutions to try to recover the data :

  • Use data recovery software such as MiniTool Power Data Recovery o EaseUS Data Recovery WizardThese programs can scan hard drives, partitions, and USB devices to locate deleted files and allow you to easily recover them.
  • The process is usually straightforward: select the drive you want to analyze, run the scan, and then choose which files to recover. It's recommended to save the recovered files to another location to avoid data overwriting.

The effectiveness of the recovery will depend on whether the data has been overwritten and the physical condition of the disk.

  Remove the 'low disk space' warning in Windows: Disable it properly and avoid scares

Security tips and best practices for using the command prompt

Using CMD gives you great power over your system, but it also carries risks if you don't know exactly what you're doing. Some key tips:

  • Do not run advanced commands without being sure of their function.Some, such as deleting files or repairing settings, can cause data loss or system malfunction.
  • Take the backup periodically, especially before profound changes.
  • Use CMD as administrator only if you really need it. Regular use with user permissions is safer for everyday tasks.
  • If you're going to edit system files or the registry, make sure you understand the process first and follow reliable sources.
  • To stop the execution of a command in progress, use Ctrl + CThis combination cancels the current action, but does not revert any changes already made.
  • Use the up and down arrow keys to quickly recall previously used commands.

History of the Linux operating system
Related articles:
History of Linux Operating System: A Complete Guide

CMD and its essential role in administration and maintenance

The command prompt is much more than a relic from the early days of the PC. Despite the advancement of the graphical interface, CMD remains essential for managing, repairing, and automating Windows 10. Experienced administrators use it for daily maintenance tasks, network management, backups, remotely shutting down and restarting computers, and much more.

Furthermore, knowing CMD helps you better understand the inner workings of Windows and solve problems that can't be resolved through the standard menus . Therefore, even though most users only use it occasionally, it never hurts to have the main combinations and commands handy to get you out of a tight spot when the situation demands it.

Frequently Asked Questions and Additional Tips for the Command Prompt

Some of the most common questions among CMD users in Windows 10 are:

  • Can I open multiple CMD windows at once? Yes, you can launch as many Command Prompt windows as you need to run different commands simultaneously.
  • Can I change the location where CMD opens? Yes, if you open it from the file explorer by typing cmd in the address bar, the window will launch directly to that path.
  • What do I do if a command doesn't respond? Use Ctrl + C to cancel execution. If it doesn't respond, close the window with the X icon.
  • Where can I find the full list of available commands? You can get help by running help or by consulting the official Microsoft website, where there is a complete and updated list of all commands and their parameters.
  • How to pin CMD to the start menu or taskbar? Open search, type cmd, right click on the result and select Pin to Start o Pin to taskbar.

Don't be afraid to experiment! Start with basic commands and gradually explore more advanced possibilities to get the most out of your Windows.

As you've seen, the Command Prompt in Windows 10 is a powerful, flexible, and, dare I say, even fun tool if you're willing to learn its secrets . Whether it's for system repair, task automation, customizing your environment, or file recovery, mastering CMD puts you light years ahead of tackling any tech problem with ease and efficiency. Save this guide and practice: with time, you'll feel right at home managing your PC from the command console.

Binary number systems
Related articles:
The Basis of Computing: Binary Number Systems Explained