CMD: Create Shortcut To Command Line/Dos Programs

Contributor Icon Contributed by AlexTheBeast Date Icon December 9, 2003  
Tag Icon Tagged: Windows

Simple way to create shortcuts to command line programs. You favorite dos command 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 microsoft, your location box would contain:

cmd /k ping tech-recipes.com

5. Select Next
6. Name your shortcut and push Finish

Previous recipe | Next recipe |
 
  • Name
    hey im at school theyve blocked cmd is there away to get it up easily without system32 and the likes
  • arterax
    Thank you for your shortcut info cmd /k to emulation shell. How can I extend this shortcut to start a dos program such as 123r23.exe ?
  • Darein
    This is exactly what I was looking for. I had been monitoring my ping by doing "ping www.example.net -t" in the command box, but when I started doing it almost daily I figured I should find a way to automate it instead of typing every time. (Of course, it's probably better if you have a good ping app, but this works and it's easy.)

    Also, the site I was pinging was not example.net. That was just an example.
  • ben
    this does not work if ur administrator has blocked it (on ur school computer)
  • joykiller
    lol just make a new file and type CMD in it then save it as somthing.bat and run it!
  • polytonality
    Try the pressing the 'Windows' and 'R' keys at the same time to bring up "Run"; then, type CMD and press 'Enter'. Might work, depending on user permissions....
  • nal
    lol
blog comments powered by Disqus