CMD: Create Shortcut To Command Line/Dos Programs
Posted 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
5. Select Next
6. Name your shortcut and push Finish
This works on all versions of windows including Windows 7 and Windows 8.
The Conversation
Follow the reactions below and share your own thoughts.


March 25, 2009 at 12:27 pm, nal said:
lol
April 25, 2009 at 6:06 pm, ben said:
this does not work if ur administrator has blocked it (on ur school computer)
May 05, 2009 at 4:16 pm, polytonality said:
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….
February 19, 2010 at 10:19 am, Anonymous said:
lol just make a new file and type CMD in it then save it as somthing.bat and run it!
October 16, 2009 at 8:51 pm, Anonymous said:
This is exactly what I was looking for. I had been monitoring my ping by doing “ping http://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.
January 06, 2010 at 7:45 pm, Anonymous said:
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 ?
March 08, 2010 at 2:18 pm, Name said:
hey im at school theyve blocked cmd is there away to get it up easily without system32 and the likes
April 24, 2010 at 11:45 am, Varun said:
Thanks for
I have been looking for this since long…
May 21, 2010 at 2:34 pm, bow said:
please help,about that knowladge….please sent to my email..thnaks
May 21, 2010 at 2:34 pm, bow said:
how,to make shortcut from dos……..
July 15, 2010 at 9:34 am, Ravi_mht2005 said:
ok this is nice tips
thanx.
December 01, 2010 at 4:10 am, Vikas pal said:
thankssssssssssssssssssss
December 02, 2010 at 12:00 pm, Mathias_pk said:
lol, thanks to you i have learned how to make a fake / prank virus
make the shortcut and type:
cmd k shutdown -r -f -c “WARNING! your computer has detected a fatal virus and will now restart. All data will be lost after restart.” -t 59
than change the icon of the shortcut at (right mouse) properties > change icon
type in the upper text box pifmgr.dll (press enter and it will give you a list of nice icons to chose from)
than you change the name of the shortcut into something that will fit with the icon and make it look like a simple nice game.
after that when you will open it, it will give you 59 seconds and then the computer will simply restart. at the other hand, people who don’t know this will read, and think that they have installed a virus..
if you want to test this to see if it works correctly without having to restart your computer, than you can make another shortcut:
cmd /k shutdown -a
this will abort the shutdown after you double click on it.
April 05, 2011 at 4:18 am, Imtiyaz Shaikh said:
Thanks, Its working.
September 10, 2011 at 11:47 pm, azeem said:
thhhhhhanks much
September 26, 2011 at 5:56 am, jrexz said:
thanks a lot!
just the one that im lookin for
January 26, 2012 at 11:09 am, selva said:
thank you working fine
February 04, 2012 at 6:30 pm, Leonard said:
Thanks.