home | about | newsletters | contact | advertising | shop | radio | courses | widget | site map

Helping Normal People Get Their Geek On And Live The Digital Lifestyle

Everyday People Learning Insider Tools and Tactics To Live The Ultimate, High-Tech Lifestyle
» Learn More About PCMech University

"Fantastic site. So heartening to find someone who is so keen to share the knowledge without charging a fortune for it. Well done!" - Kris, Melbourne, Australia
» LEARN MORE

Login: Password: Remember me

How To Create Shortcuts To Command Line Tools

Posted Sep 14, 2008 by Jason Faulkner  

The Windows command line offers access to many useful tools ranging from file system control to networking. A switch you might not know about the cmd.exe tool is /k which keeps the command line window open after the command is run instead of closing it. This is useful for creating shortcuts to run command line tools.

For example, if you want to create a shortcut to ping a particular computer (such as your mail server) you would create a shortcut like so:

  1. Right click on the desktop and select New > Shortcut.
  2. For the location of the item, enter the command. In this case: cmd /k ping my.mailserver.com
  3. Save your changes.

Now you just have to double-click on the shortcut to run a ping test on your server and the results window will stay open to allow you to review the results and/or run additional commands without having to open another command line window.

Got The Newsletter?

Exclusive PCMech Content. Sign up and receive our free report: 20 Tips For Becoming a Technology Power User.

NAME:
EMAIL:

PCMech Highly Recommends...

The Hacker's Nightmare is a full 500+ pages of valuable content. It has plenty of diagrams and illustrations and is broken down into small sections with easy step-by-step procedures. This is what I like about this book. It is powerful information that everybody needs, but it doesn't read like a boring computer manual. LEARN MORE