Last Updated on April 22, 2024
You may have heard of the Command Prompt and have a basic understanding of what it does. But when it comes to managing disk partitions, fixing some disk errors, or running certain diagnostic tests, do you know how to open the Command Prompt and which commands to use for these tasks?
And that's okay, even if you don't know much about it. On this page, we'll provide a beginner's guide to Command Prompt to help you teach yourself. Let's get started:
Please provide the English content you want translated, and I'll do my best to translate it into Chinese.
Note: This page is intended for Windows beginners. If you encounter errors when running Windows Command Prompt commands, be sure to type the commands exactly as shown on this page.
Let's see how you can teach yourself to use the Command Prompt on your Windows computer like a pro.
Thus, the "Command Prompt" is an interpreter application that commands most Windows operating systems to perform various tasks through multiple command-line instructions. The Command Prompt is referred to as the Windows Command Processor, but it's more commonly known as the Command Shell or CMD prompt. It's also fondly referred to as cmd.exe. Occasionally, it's called MS-DOS or simply the "DOS prompt."
Command Prompt is widely used by many Windows system administrators and IT professionals, but it's not very popular among Windows beginners. That's because Command Prompt has over 280 commands, each designed to solve a different problem. With so many complex commands to learn, most new Windows users prefer to use alternative tools instead.
Is the Command Prompt accessible to Windows novices, and can it be used to address basic issues with your Windows computer, hard drive, or even external storage devices? Absolutely – let's take a look at how to get started with Command Prompt on your PC.
There are several ways to open the Command Prompt on a Windows computer. Here, we'll show you five standard methods to quickly launch and open the Command Prompt window on your machine. Let's get started:
Press Windows + X and select or click "Command Prompt (Admin)" to open Command Prompt as an administrator in Windows 11/10/8.1/8.
Click the Windows logo or Start button, scroll down, and select Command Prompt from the list, then click Command Prompt to open it.
This method works for opening Command Prompt in Windows 10/8.1/8 and earlier.
Open Command Prompt from the Start menu:
Press the Windows + S keys to open the Search box, type cmd or Command Prompt, and then right-click Command Prompt from the results.
Right-click Command Prompt and select Run as administrator. This will open the Command Prompt on Windows 11, 10, 8.1, 8, or 7.
Press Windows + R, type `cmd` into the dialog box that appears, then click "OK". This will open the Command Prompt in all versions of Windows.
Press Ctrl + Alt + Del, and click “Task Manager.” Click “File,” then select “New Task.” Wait for the Run dialog box to appear, type cmd, then click “OK.” This will open the Command Prompt window on your computer.
In addition to the five methods above, there are many other workarounds that can help you quickly open and access the Command Prompt on your Windows PC. For more detailed information, refer to:
10 Ways to Quickly Open Command Prompt in Windows 10
How to open Command Prompt in Windows 10? You just need to find the right way. Windows 10 offers almost 10 ways to access Command Prompt. Let's take a quick look.
As mentioned, Microsoft added more than 280 commands for administrators and developers to run and execute multiple tasks on Windows machines from the command prompt.
But most new Windows users would find that list overwhelming, and few could be expected to remember so many command-line options.
Here, we have gathered the most important and widely used Command Prompt commands that regular users can make use of:
Type | Command |
---|---|
Manage Hard Disk Partitions |
|
Manage Files |
In addition to these three main types of command prompts, there are many other varieties. You can refer to the Windows Command reference for a full list of commands.
So, how can a beginner get started with Command Prompt in Windows 11/10 or even older versions? Follow this comprehensive guide to learn how to use it to fix numerous issues on your computer. Let's begin.
When your hard drive or storage device encounters different errors, you need to run different command lines to fix them. Here's how to use them on your computer:
CHKDSK is a command used to check and fix disk errors on a Windows PC, such as an external hard drive.
Please replace E: with the drive letter of your hard disk partition.
The format command can help you change the file system to FAT32, NTFS, or even exFAT. Sometimes, you can also use it to fix a Raw drive or other unknown errors on a storage device, like formatting a USB with CMD< a href="/partition-master/format-usb-flash-drive-using-cmd.html" target="_blank">.
If you want to convert a disk to MBR or GPT via CMD, remember to back up all files on the target disk. This is because converting a disk via Command Prompt requires deleting all existing partitions, leading to data loss.
You might also be interested in:
How to Convert Disk to MBR or GPT
If you prefer a safer way, you can rely on the Partition Master tool and its disk conversion function. It supports converting a disk to MBR or GPT without losing any data.
Here's how to convert a disk using the Command Prompt:
When you need to quickly and effectively sanitize or wipe a hard drive, you can use the "Clean" or "Clean All" command for this purpose. Please note that the "Clean" command will format and delete all existing partitions on the drive, while the "Clean All" command will completely erase everything from the disk.
Make sure you know the right command to use for your disk, whether it's an HDD, SSD, or even an external device. Here's how:
When you partition a new hard drive, you can use the create command in Command Prompt to create a primary partition or logical drive on the disk. Here are the steps:
As mentioned, different command lines are needed to execute and fix various issues, making the command prompt a bit complicated, right? Here comes a reliable alternative – professional disk management software – AOMEI Partition Assistant, which can help you partition, manage, and optimize disk partitions with ease like an expert.
Step 1. Launch AOMEI Partition Assistant, and check the available space of the disk in "Partition Management".
Step 2: Shrink the disk partition to create unallocated space.
Right-click on the target partition with lots of free space, and select “Resize/Move.”
Then, drag either end of the partition to the left or right to shrink it and free up enough unallocated space. You can see how much you've reduced the size by in the “Size” field. Click “OK.”
Click “Perform XX Task” and then “Apply” to save all the changes.
Back in the “Disk Management” tool, you should see the unallocated space on the same disk, and you can proceed to create a new partition on your hard drive.
Step 3. Create a new partition on the target drive using the unallocated space.
Right-click the unallocated space, and then select New.
Customize the partition size, drive letter, label, and file system (NTFS, FAT32, EXT2/3/4, exFAT) in the "Advanced Settings." Click "OK."
Finally, click “Execute tasks” and “Apply” to create the partition using the unallocated space on your disk. Repeat these steps to partition your hard drive and create more partitions.
In addition to using partition commands at the command prompt, some power users might run commands to manage files and fix file issues on a device.
Here we will go over how to run commands in the Command Prompt on Windows to manage your files.
Please note that the `DEL` command is designed to permanently delete files or content from a drive or device without going through the Recycle Bin. Therefore, make sure you select the correct device to run the command, as accidentally losing important files cannot be undone.
C:\Users\Tim\Documents\Adobe\*.*
with any subfolder on your computer's drive.)C:\User\Tim\Downloads\
with a different path and replace *.exe
with another file extension to delete files of a different format from a different drive.)You might also be interested in:
How to Permanently Delete Files from Computer Without Recovery
Follow this guide to learn how to permanently delete files and protect your data on your PC or laptop, whether you're dealing with the computer, external hard drive, or USB flash drive.
In addition to deleting files or folders, Command Prompt also lets you copy or move files from one drive to another locally in Windows. You can learn how to use Command Prompt to copy files here:
(You can replace ** with the name of a specific file, or replace .txt with another file extension to copy other types of files, such as .xls. Or you could replace c: or e: with a different drive letter.)
(C: and D: can be replaced with other drive letters.)
Syntactic meaning:
You might also be interested in:
How to Move Large Files from One Drive to Another
You can try copying and pasting at a basic level, but it may fail if the file you're transferring is huge. Thus, we highly recommend the simplest way – using the Todo PCTrans tool to move large files from one drive to another.
When your files go missing or get hidden on a storage device, you can use this tool for assistance:
(E: should be replaced with the drive letter of your device. This command will help repair errors on the device and find any lost or missing files on the storage device.)
You might also be interested in:
How to Show Hidden Files via CMD, Control Panel, and Software
When your files go missing from USB drives or hard drive, you may wonder, "Is there a command in Windows Command Prompt that can list hidden files?" Yes, there's a command to show hidden files.
On this page, we explain what Command Prompt is, how to open it in Windows, and what you can do with its most important command-line utilities. We've also included detailed steps on how to run these commands to resolve and fix various issues.
While performing tasks through the command line can be powerful and efficient, there is also a danger involved if you type in a wrong command. So, be very careful when running commands.
If you're looking for a tool that can completely replace the command prompt for disk management, try Partition Master.
Alternatively, if Command Prompt isn't working on your PC, use its alternative utility to perform the task at hand. Afterward, try fixing it by enabling CMD or performing a system restore to return the Command Prompt to its original state. You can refer to the step-by-step guide in Command Prompt not working in Windows 11/10 for assistance.