Run Command Shortcut Keys: Full List & How to Use

How-to basics · Updated November 23, 2026

The primary shortcut to open the Run command dialog in Windows is Windows key + R. Pressing these two keys together instantly opens the small Run box in the bottom-left corner of your screen, where you can type commands to launch programs, open folders, or access system tools.

What Is the Run Command Dialog?

The Run dialog is a lightweight input box that has been part of Windows since Windows 95. It lets you start almost anything by typing its executable name, a file path, or a system command. Unlike the Start menu search, Run does not search the web or show app suggestions—it directly executes what you type. This makes it faster for power users who already know the exact command they need.

Common examples of what you can type into Run:

  • cmd – opens Command Prompt
  • notepad – opens Notepad
  • control – opens the classic Control Panel
  • %temp% – opens the current user’s Temp folder
  • msconfig – opens System Configuration

How to Open Run Without the Keyboard

If you prefer using a mouse or touch, you can also open Run through the Start menu. In Windows 10 and Windows 11, right-click the Start button (or press Windows key + X) and select Run from the power user menu. In Windows 11, you can also click the search icon on the taskbar, type “Run,” and press Enter. On Windows 10, the Run shortcut is also visible in the Start menu’s Windows Accessories folder.

Other Keyboard Shortcuts That Work in Run

Once the Run dialog is open, several keyboard shortcuts make it more efficient:

  • Enter – runs the command
  • Esc – closes the dialog without running
  • Ctrl + A – selects all text in the field
  • Ctrl + C / Ctrl + V – copy and paste text
  • Tab – moves focus to the OK button (or back to the field)
  • Alt + F4 – closes the dialog

Note that Run does not support arrow-key history like a command prompt does, but it does remember your last few commands in a drop-down list. Click the small arrow at the right end of the input field to see recent entries.

What If the Windows + R Shortcut Doesn’t Work?

If pressing Windows + R does nothing, several things could be blocking it:

  • Group Policy restriction – In Windows Pro or Enterprise, an administrator may have disabled Run via Group Policy. Check with your IT department.
  • Registry edit – The key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer may contain a value named NoRun set to 1. Changing it to 0 and restarting Explorer usually restores the shortcut.
  • Keyboard issue – Some keyboards have a Fn lock that disables the Windows key. Try pressing Fn + Windows key or use the on-screen keyboard.
  • Third-party software – Some customization tools or security programs can remap or block this shortcut.

If you only need a temporary workaround, right-click the Start button and choose Run, or use the Win + X menu.

Run vs. Command Prompt vs. PowerShell

Many users confuse the Run dialog with Command Prompt or PowerShell. They are different tools:

  • Run – executes a single command or opens a program. It does not support multiple commands, scripts, or command-line arguments that require interactive output.
  • Command Prompt – a full terminal environment where you can run multiple commands, batch files, and see text output.
  • PowerShell – a more advanced shell that supports scripting and object-oriented commands.

For example, typing ipconfig in Run will open a Command Prompt window that flashes briefly and closes because the command finishes quickly. To see the output, you need to open Command Prompt first and then type ipconfig. Run is best for launching apps and opening settings, not for running commands that produce output.

Useful Run Commands You Might Not Know

Here are some lesser-known but handy commands to type in Run:

  • shell:startup – opens the Startup folder for the current user
  • shell:appsFolder – shows all installed apps (Windows 10/11)
  • cleanmgr – launches Disk Cleanup
  • perfmon – opens Performance Monitor
  • resmon – opens Resource Monitor
  • winver – shows Windows version and build number
  • dxdiag – opens DirectX Diagnostic Tool
  • mstsc – opens Remote Desktop Connection

You can also type a full path, like C:\Users\YourName\Documents, to open that folder in File Explorer. If you want to open a specific file, type its full path and press Enter—Windows will use the default associated program.

How to Add Your Own Run Commands

You can create custom Run commands by placing shortcuts in the Windows folder or by editing the registry. The simplest method is to add a shortcut to a program in C:\Windows or a folder in the system PATH. For example, if you create a shortcut named mysite that points to https://example.com and place it in C:\Windows, typing mysite in Run will open your browser to that site.

Alternatively, you can edit the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths to add custom entries. This is more advanced and requires administrator rights. Always back up the registry before making changes.

Frequently Asked Questions

What is the shortcut to open Run on a Mac?

Mac doesn’t have a direct equivalent to Windows Run. The closest is Spotlight (Cmd + Space), which lets you type an app name or path, but it doesn’t accept Windows-style commands like msconfig. For terminal commands, you open Terminal from Spotlight or Applications/Utilities.

Can I run a command as administrator from Run?

No, Run does not have a “Run as administrator” option. If you need elevated privileges, you must open Command Prompt or PowerShell as administrator first, then run the command from there. Alternatively, you can use Ctrl + Shift + Enter after typing the command in the Start menu search, but that works only for apps that show in search results, not for arbitrary commands.

Why does Run open but then close immediately?

This usually happens when you type a command that opens a new window and then the window closes because the command finishes. For example, ipconfig opens a Command Prompt, runs, and closes. To keep the window open, use cmd /k ipconfig in Run. The /k switch tells Command Prompt to stay open after executing the command.

How do I change the default Run dialog size?

Windows does not offer a built-in setting to resize the Run dialog. It is a fixed-size dialog. Some third-party utilities can modify it, but they are not recommended due to stability and security risks.

Does Run work in Windows Safe Mode?

Yes, the Run dialog is available in Safe Mode, but some commands that require services or drivers may not work. For example, msconfig works, but dxdiag may not show full information because graphics drivers are not loaded.

Can I use Run to open a website?

Yes, typing a full URL like https://www.example.com and pressing Enter will open your default browser to that site. You can also type www.example.com without the protocol, and Windows will add http:// automatically in most cases.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.