Creating your own run commands can be fun and useful, we usually use the start menu to search and run our programs but this may take more time especially when you haven’t yet migrated to an SSD drive.
You can also use Search/Cortana if you want to find almost anything (in the internet also) but this also requires some time for it to load.
Using commands on “Run” (Win+R) is the fastest way to launch any program or task you want in Windows, and it’s been and will always help to create your own custom commands to do certain tasks or launch some programs.
For example you can’t run the browser Google Chrome by typing “Google Chrome” in the Run command prompt, instead we use
chrome, commands are usually shorter to make easier for us to type them.
How to Create Custom Run Commands!
1. Use Existing Run Commands
As you know every system program and most of desktop programs got their own Run commands, so why create them if you already got them?
To find out the correct command all you have to do is find the shortcut to the application and right-click on it, go to “Properties“.
Click on the “Shortcut” tab, then look for “Target“. There you will find the complete path to the program, look for the name before
.exe and you will get the Run command to use.
You can also find any program’ location by right-clicking on the shortcut then choosing “Open File Location“.
In this case the command for “Task Manager” is simply
Once you type “taskmgr” in the Run (Win+R) command prompt and hit enter you will get the “Task Manager“.
This tip works only with system programs (e.g Task Manager , System, System Configuration, Registry Editor, …) or desktop applications as I said.
If you wish to create your own custom Run commands then it’s explained in the next part of this tutorial.
2. Use Shortcuts to Create Custom Run Commands
Shortcuts are powerful, you can do lot of tricks with them but in this tutorial we will only show to create a customized Run command.
First of all create a shortcut for your desired program by hitting “Create shortcut” after you right-click on the file
Program.exe. In this case I will create a Run command for the program
PicPick since I use it a lot to create images for my tutorials (and is Free!).
Once you have created your shortcut rename it to the name you want your Run command to be. I will use the name
pic as a command to run PicPick.
Then move your newly created shortcut to the folder
If the operating system (in this case Windows 10) requires your administrator permission, provide it by clicking “Continue“.
Now all I have to do is use the command
pic to launch my favorite screenshot program, PicPick.
You can also create a shortcut by right-click at any area on your PC and choose “New” > “Create Shortcut“. Choose “Browse” to find the executable program’ path and select it to create your shortcut. Then move the shortcut to the
3. Create a Custom Run Command Using Registry
This is the not-so-easy-way-to-create-a-run-command but can be useful if you don’t want to use shortcuts in order to get your custom Run commands working.
Open the Run command prompt and launch the “Registry Editor” using the command
Then follow this path:
Select the key “App Paths” and right-click anywhere in the Registry Editor and choose “New” > “Key“, name it with the name of Run command and file type (e.g “PicPick.exe”).
Then change the value of the “(Default)” to the full path of the application. Create a new “String Value” and put only the path this time without the name of the program.
Exit the Registry Editor and launch your program using the new command you created! It works without the need of a restart, if it doesn’t work make sure you didn’t forget “.exe” in the name of the key on the left side of Registry Editor.
4. Use the Third-Party App: AddToRun
If you want to create multiple shortcuts but don’t have the time to do it you can try “AddToRun“.
You can download “AddToRun” from the official website: https://sourceforge.net/projects/addtorun/
After you finish downloading it un-compress it using 7-Zip, run the program as administrator, it won’t work if you run it with a double-click.
Click “Select” to choose the program you want to add a command for, then put the “Alias” and click “Add”. This program doesn’t require any restart, it works like the Registry trick we made earlier. In fact I checked and I have found a new key named
p.exe added to the path explained in the Registry method.
And there you have it, you are now able to create your own Run commands in 4 ways.
If you have any questions feel free to write them in the comments’ section below, thanks for your time and have a nice day.
Soufiane – thewindowscollege.com