Here’s how to create a Run Command for your favorite applications, files, and folders:
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.
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.
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.