Create a shortcut in Windows 7,8 that runs a command

Finish Creating Shortcut_thumb.jpg 1If you are new to Windows, you might want to create some shortcuts to run a few commands or opens a program.

1. Step Right-click on your desktop (not the Metro desktop!) and click on New – Shortcut

Creating A Shortcut In Windows 8.Jpg 1

2. Step Now type the location of your program. If you do not know the exact path, click on the button Browse and locate it:

Type Location Of Shortcut 1

3. Step Next type a name for the shortcut

Finish Creating Shortcut 1

4. Step Lastly, click on Finish and the shortcut will be created on your desktop.

That way you can create shortcuts for almost anything. If you have a command that you want to create a shortcut for simply enter it instead of the location to an .exe file e.g.

sfc.exe /scannow

ALL REGISTERED SYSTEM VARIABLES CAN BE USED IN SHORTCUTS WITHOUT ENTERING THE FULL PATH TO THE EXECUTABLE

Keep in mind some commands like the one above will require elevated rights, so you should right-click on the shortcut and click on Run as administrator.

Published: Thursday, February 9th, 2012 Last Modified: February 9, 2012

Related Posts

Rate This Article
5 of 5 0 (100%) 1 vote