The Windows Command Processor is the program that runs when you open Command Prompt: it reads the commands you type and passes them to Windows, which then carries them out. To use it, open the Start menu, type cmd, and press Enter (or click Command Prompt in the results). A black window opens with a prompt such as C:\Users\YourName>, and you can start typing commands. If you need administrator rights for a command, right-click the result and choose Run as administrator instead. That is the whole entry point; everything below covers how to use it safely, what commonly goes wrong, and how to recover.

What You'll Need

  • A Windows PC (Windows 10 or Windows 11 are the versions these steps describe; older versions are similar but labels can differ).
  • An account that is allowed to sign in to the PC. Some commands need an administrator account, and you will be asked to approve the elevation prompt.
  • Knowledge of the exact command you intend to run. The Command Processor does exactly what you tell it, including deleting files, so look up the command before you press Enter.

Step-by-Step

  1. Open the tool. Press the Windows key, type cmd, and press Enter. Alternatively, press Windows+R, type cmd in the Run box, and press Enter. On Windows 11 you can also right-click the Start button and choose Terminal, which opens a tabbed window that can host Command Prompt; the commands are the same.
  2. Read the prompt. The text before the > tells you two things: the folder you are currently in and, if you are an administrator, the window title usually says Administrator. Confirm both before typing anything, because many commands act on the current folder.
  3. Run a harmless first command. Type dir and press Enter. This lists the files and folders in the current directory. It is the safest way to confirm the window is working and to see where you are.
  4. Change folders with cd. Type cd Documents to move into the Documents folder, or cd .. to go up one level. If the path contains spaces, wrap it in quotes, for example cd "C:\Users\YourName\My Folder".
  5. Get help for a command. Type the command followed by /?, for example ipconfig /?, and press Enter. Windows prints the command's own help text, which is the most reliable reference for the version installed on your PC.
  6. Run an administrative command when needed. Close the window, reopen it with Run as administrator, approve the User Account Control prompt, and run the command again. Commands such as sfc /scannow (which checks system files) require this; without elevation they fail or do nothing useful.
  7. Copy text out of the window. Right-click inside the window and choose Mark, drag over the text, then press Enter to copy it. In newer Windows versions you can simply select text with the mouse and press Ctrl+C. This matters when you need to paste an error message into a search or a support request.
  8. Close cleanly. Type exit and press Enter, or click the close button. Nothing is saved between sessions except the commands you deliberately ran; the window itself keeps no history after closing.

Common Mistakes

The most frequent problem is running a command in the wrong folder. Commands like del or ren act on the current directory, so check the prompt and run dir first. A second common mistake is assuming the window is already elevated: if a command reports access denied, that is usually the cause, not a broken command. Third, people paste commands from the internet without reading them; the Command Processor has no undo, and a command that deletes or moves files takes effect immediately. Fourth, paths with spaces are typed without quotes, which makes Windows treat each word as a separate argument. Finally, closing the window mid-command can leave a long-running operation unfinished; wait for the prompt to return before closing.

Tips

Use the up and down arrow keys to step through commands you have already typed in the current session, which saves retyping. Press Tab while typing a file or folder name to auto-complete it. Type cls to clear the screen without closing the window. If you want a record of what a command printed, you can redirect output to a file with >, for example ipconfig > network.txt, which writes the result into the current folder. Keep a note of any command that changes system settings so you can reverse it. And prefer the built-in help (/?) over random forum posts, because it matches your exact Windows build.

Troubleshooting

If the window opens and closes instantly, you likely launched a shortcut that runs a command and exits; open it from the Start menu search instead. If you see Access is denied, reopen as administrator. If a command is not recognized as an internal or external command, check the spelling, and check whether the tool it refers to is actually installed; some commands come from optional Windows features. If the text is garbled or the window is too small, right-click the title bar, choose Properties, and adjust the font and window size there. If a command appears to hang, press Ctrl+C to interrupt it, then check whether it had already made changes before you retry. If Windows itself is misbehaving and you cannot tell whether the problem is the command or the system, restart the PC and try the command once more before doing anything more drastic.

Frequently Asked Questions

Is Command Prompt the same as PowerShell?

No. They are separate tools with different command languages, though many familiar commands such as dir and cd work in both. Use Command Prompt when following instructions written for cmd, and PowerShell when instructions specify PowerShell.

Do I need to be an administrator to use it?

Not to open it or run everyday commands. You only need elevation for commands that change system-wide settings or protected files, and Windows will prompt you when you launch it as administrator.

Can I undo a command?

There is no undo inside the window. Deleted files may be recoverable from the Recycle Bin only if the command sent them there, which many do not. This is why you should read a command before running it.

Why does the prompt show a different folder than I expected?

The window opens in a default folder, often your user folder. Use cd to move, and remember that a new window always starts fresh rather than remembering your last location.

Is it safe to paste commands from websites?

Only if you understand what the command does. Treat any command that deletes, moves, or changes system settings with the same caution as a file operation, and look up unfamiliar commands first.