- Create a shortcut for the one you want. Remember that the shortcut’s name is the command and it shouldn’t contain a space.
- Now, copy that shortcut and paste it in the “Windows” folder (you can locate this folder in C: drive).
That’s it. All done.
Note: This method doesn’t work for folders. However, it can work for files and applications.
First, back up the Registry.
Now, open the Registry Editor and navigate to the following location: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > App Paths.
Right-click on the “App Paths.” Hover your mouse over “New” and then select “Key.”
Type the name for the key and then add “.exe” (without double quotes) at the end. Remember that the name is the command and it shouldn’t contain a space. In this instance, I want to create run command for PotPlayer. So I’m providing the name as “potplayer.exe” (without double quotes).
Now, in the right pane, you can see the “Default” key. Double-click it and then provide the path of the one you’ve chosen (in our instance, it is PotPlayer executable file’s path) in the “Value data” field.
Hit the “Ok” button.
That’s it. All done. From now on, whenever you execute the command potplayer in Run Command Box, it’ll open PotPlayer.