Pages

Saturday 22 October 2016

Create Custom Run Command in Windows

Using the Run command in Windows, you can use certain pre-defined commands to open up applications. In fact in Windows10 / 8 / 7 /  Vista, its Start Menu Search box itself acts as a Run box.
If you type the name of an application, say Ultimate Windows Tweaker (uwt) in the start box, it will search for the app and display it in the results. Hitting Enter will open the app. But typing it in the Run box will not open it.
With the help of this tip you can open any software or application via the Windows Run box. That is, you can create your own custom RUN commands.
There are few ways to do it. (1) The Easy way and (2) The Not-so-easy way (3) Using a 3rd party app (4) Editing the Environment variables.

Create your own RUN commands

(1) The Easy way:
Create a shortcut of the application or program. Rename it to say, uwt, and place this shortcut in the Windows folder.
Now type uwt in start search box and hit Enter, and you will see the Tweaker start! To reconfirm, open the Run box and type uwt and hit enter. The Tweaker opens!
I have also tried it with a folder and it works! I created a shortcut of a folder, renamed it to something and saved the shortcut in the Windows folder. Typing something in start search box or in the Run box ill open the folder!
(2) The Not-so-easy way.
Open regedit and navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
In the left panel, right click this tools Path key and choose New > Key.
Now in the right panel, double click on the Default string value and in the Value and in the box which opens, enter the path of the executable ie E:\Software\package.exe.
Again in the right side, empty spot, right click > select New > String Value. Name the key as Path. Double click and give it the value as the folder path, ie in this example: E:\Software\
Exit regedit.
Now type package in Start Search Box (or the Run box) and hit Enter. That's all.

3) Use 3rd part portable app called AddToRun. AddToRun is a FREE to use utility which will allow you to run or open any file or application from start menu run command prompt (which open up when you press Window Key + R ).
It has a very easy and simple to use interface which will allow you to select a file or application shortcut and define a alias or friendly name with which you can run the application from run prompt.
4) Edit the Environment Variables. Open you System Drive and create a folder, named say, E:\myrun.
Now right click on Computer folder and open its Properties.
Select Advanced System Protection and click on Environment Variables. In the lower half, double click on the ‘Path‘ System variable.
At the end of the variable value, add the following: ” ;e:\myrun; “. If your Windows is on ‘C‘ drive, make sure you write cinstead of e.
Click OK. Exit.
Now create a shortcut to any application and give it a short simple name. You will be able to run it through the start box.
Hope you are able to get things done using this tip.

No comments:

Post a Comment