search
HomeComputer TutorialsComputer KnowledgeCreate Command Prompt Desktop Shortcut on Windows 10/11 - MiniTool

This guide shows you how to create Windows Command Prompt shortcuts – both a general shortcut and one for a specific command. For additional computer tips and tools, visit the MiniTool Software website.

Creating a Command Prompt Desktop Shortcut

There are two methods:

Method 1: Adding from the File Explorer

  1. Press Windows key S to open search.
  2. Type cmd.
  3. Right-click "Command Prompt" in the results and select "Open file location".
  4. Right-click the "Command Prompt" application and choose "Send to > Desktop (create shortcut)".

Method 2: Creating a Shortcut Directly

  1. Right-click your desktop and select "New > Shortcut".
  2. In the "Create Shortcut" window, enter %windir%\system32\cmd.exe and click "Next".
  3. Name the shortcut "Command Prompt" and click "Finish".

Creating a Shortcut for a Specific Command

This creates a shortcut that executes a command and then either keeps the Command Prompt window open or closes it.

  1. Right-click your desktop and select "New > Shortcut".
  2. Enter either:
    • C:\Windows\System32\cmd.exe /k your-command (keeps the window open)
    • C:\Windows\System32\cmd.exe /c your-command (closes the window after execution) Replace "your-command" with your desired command.
  3. Click "Next".
  4. Name the shortcut and click "Finish". Double-clicking this shortcut will run the command.

Alternative Quick Launch Methods

  • Method 1: Press Windows key R, type cmd, and press Enter. Use Ctrl Shift Enter to run as administrator.
  • Method 2: Press Windows key S, type cmd, select "Command Prompt", and right-click to "Run as administrator".

Conclusion

This tutorial detailed creating Command Prompt shortcuts. For more Windows Command Prompt guides, visit the MiniTool News Center.

Data Recovery Note: If you've lost files, consider using MiniTool Power Data Recovery to restore them. This professional data recovery software works on various devices, recovering deleted files, photos, videos, and more. Simply run the program, select a drive, scan, and recover your files.

Create Command Prompt Desktop Shortcut on Windows 10/11 - MiniTool

The above is the detailed content of Create Command Prompt Desktop Shortcut on Windows 10/11 - MiniTool. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Use Chrome Web Store to Find & Install Extensions for Chrome - MiniToolUse Chrome Web Store to Find & Install Extensions for Chrome - MiniToolMay 06, 2025 am 12:50 AM

Learn about Chrome Web Store and use it to easily find and add useful extensions to your Google Chrome browser. Detailed instructions for how to install and manage Chrome Web Store extensions are provided.

Fix: Microsoft Word Opens Files in Read-Only Mode - MiniToolFix: Microsoft Word Opens Files in Read-Only Mode - MiniToolMay 06, 2025 am 12:48 AM

Sometimes Microsoft Word opens files in read-only mode, which prevents you from editing the documents. This article from php.cn mainly introduces several ways to solve the problem “Microsoft Word opens files in read-only mode”.

How to Download, Install, Update RTX 3060 Drivers for Win 11/10 - MiniToolHow to Download, Install, Update RTX 3060 Drivers for Win 11/10 - MiniToolMay 06, 2025 am 12:47 AM

RTX 3060 drivers download, installation, and update are simple tasks. If you have a new graphics card - NVIDIA GeForce RTX 3060 Ti, updating or installing the proper graphics card driver for it is important. Let’s read this post and php.cn will show

[Answers Got] Google Sites Sign in – What Is Google Sites? - MiniTool[Answers Got] Google Sites Sign in – What Is Google Sites? - MiniToolMay 06, 2025 am 12:46 AM

What is Google Sites? Google has developed a variety of products covering different fields. Just like Gmail, Calendar, Drive, Docs, Sheets, and Slides, Google Sites is one of them but not that kind of commonly used in daily life. But Google Sites is

How to Update Your PS5 DualSense Controller on PC? - MiniToolHow to Update Your PS5 DualSense Controller on PC? - MiniToolMay 06, 2025 am 12:45 AM

Sony has released a new app Firmware updater for DualSense wireless controller to help its users to update the PS5 DualSense controller on PC. In this post, php.cn will show you how to update the PS5 DualSense controller on a PC using this new app.

Easy Ways to Ping a Phone to Find Its Location – Is It Legal? - MiniToolEasy Ways to Ping a Phone to Find Its Location – Is It Legal? - MiniToolMay 06, 2025 am 12:44 AM

When you lost your mobile phone, you want to find its location and ping a phone in some way; or if your children have a long time to leave home, you need to locate them and ping their phone. But what’s the bottom line of pinging a phone? And how to p

Guide - Windows 11 Enterprise N: ISO Download/Install, WatchGuide - Windows 11 Enterprise N: ISO Download/Install, WatchMay 06, 2025 am 12:43 AM

Windows is Windows 11 Enterprise N? What is the difference between Windows 11 Enterprise and Enterprise N? How to download Windows 11 Enterprise N ISO and install it on your PC? In this post from php.cn, you can find answers to these questions, and l

Tiny11Builder Creates Your Own Tiny11 – Windows 11 Lite ISO - MiniToolTiny11Builder Creates Your Own Tiny11 – Windows 11 Lite ISO - MiniToolMay 06, 2025 am 12:42 AM

What should you do if you want to create your own Tiny11 – a Windows 11 lightweight version? Tiny11Builder can help you to build a light version of Windows 11 with the official Windows 11 ISO file. See this post from php.cn and you can find much info

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor