Animated Banner

Animated Banner
Cyber Generation For Better Future

Ads

Popular Article

Sunday, September 30, 2012

How To Add A Program into Run Command

What is Run Command?
Run Command - Win XP

Run command is used to directly open an application or document whose path is known. It functions more or less like a single-line command line interface.

In the GNOME interface, the Run command is used to run applications via terminal commands. It can be accessed by pressing Alt+F2. KDE has similar functionality called KRunner, it's accessible via the same key binds. In the BASIC programming language, RUN is used to start program execution from direct mode.

Run Command on windows XP can be opened by clicking on "Run" which is placed on Start menu.

On windows vista and win 7, the Run Command still available, it's just doesn't appeared on Start Menu list.

Run Command - Win 7

How to open Run Command window in win Vista/7?
It's easy, just simply press windows button + R on your keyboard (press and hold windows button, then press R)


Windows Button on Keyboard

And now let's get to the our Main Business, about how to add a program into Run Command. There are some methods to do this:

1. Adding shortcut to Windows folder

Simply create a shortcut to your program, then copy this shortcut file into your windows directory (C:\Windows) then rename the shortcut into the command parameter you want to use in Run Command. After this one done, now you can try to type the name of the shortcut in Run Command.

Well, this one is a simple one, but I don't like it because it will make my windows folder swarmed by shortcuts.

2. Adding command path from Registry Editor

________________________________________________________________________
Warning: The following steps involves editing your system registry. Using the Windows Registry Editor incorrectly can cause serious problems requiring the reinstallation of your operating system and possible loss of data. We does not support problems that arise from editing your registry. Use the Registry Editor and the following directions at your own risk. I recommend that you perform a full system backup before you attempt to perform any of the steps presented in this article. Or at least make a backup of the registry.
________________________________________________________________________

For this one, I'll use Microsoft words 2007 as an Example.

- open Run Command Window (windows button + R), then type regedit then click OK to open registry editor.



- then open the following path: HKEY_LOCAL_MACHINE –> SOFTWARE –> Microsoft –> Windows –> CurrentVersion –> App Paths

Create A New Key on App Paths

- on App Paths, right click on the right panel, then choose new > key

- Rename the New Key name into <command name>.exe in this case, I want to use Words as command line to open Microsoft Words, so I named it as Words.exe. Warning: .exe is a must on the name.

Rename The Key name


- Click on the Key name (I clicked on Words.exe), then see on the right panel. Double click on Default and then add your program/shortcut path location, then OK. I used Ms Words shortcut from startmenu as a path here, since Ms Words real program path protected.

Add the program path


- Now try the command line, open Run Command window, then type your command line.

Try The Command Line

If there's an error about "not found" or "not correct path", you can recheck your path value from the last step. Make sure you entered the correct path.

That's all thank's for visiting. 







Useful link: http://en.wikipedia.org/wiki/Run_command
(There is a table contained list of commands that might be useful) 

No comments:

Post a Comment