CMD: Create Shortcut To Command Line/Dos Programs

Posted December 9, 2003 by AlexTheBeast in Windows

Simple way to create shortcuts to command line programs. You favorite cmd is only one click away.


Command line shortcuts on the desktop? What’s next, dogs and cats living together in harmony?

1. Right click on an empty space on the desktop to open the context menu
2. Select New
3. Select Shortcut with a left-click
4. In the location box type cmd /k plus whatever command you want.

For example, if you want a shortcut to ping tech-recipes, your location box would contain:

cmd /k ping tech-recipes.com

example of command prompt on desktop

5. Select Next

6. Name your shortcut and push Finish

This works on all versions of windows including Windows 7 and Windows 8.

Example of this tutorial on windows 8.

The Conversation

Follow the reactions below and share your own thoughts.