How to Make the Run Command on Windows 10

Here’s how to create a Run Command for your favorite applications, files, and folders:

Method #1

Make a shortcut for the one you want. You should not include a space in the shortcut name, which is the command.

Make a copy of this shortcut and paste it into the “Windows” folder on the “C” drive.

Method #2

Note: It does not work for folders, but for files and applications.

Copy the path to the file or the executable file of the application.

I would like to create a Run Command for the PotPlayer. I’m copying the path to its executable file.

Open the Registry Editor. Before proceeding, I suggest making a backup of the Registry.

Expand HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion. 

Right-click on the “App Paths.” Select New > Key.

Specify the key name you prefer without spaces and add .exe at the end (here I specify potplayer.exe).

Remember that the entire key name (in our example: potplayer.exe) is the command. Note that the key name without the .exe (potplayer) is also a command.

The right pane contains “Default.” Double-click on it and then paste the path you copied earlier into the “Value data” field. Click the OK button.

That’s all there is to it. If you execute the command potplayer or potplayer.exe in the Run Command Box, PotPlayer will open.

Default image
Thirumalraj
How To Raj was founded and run by Thirumalraj, an MCA graduate. Since August 2015, he has been blogging on his other blog, Technology Hint. Learn more about How To Raj here.