How to Create Your Run Command in Windows 10

In this post, we’ll see two different ways to create your run command for your preferred applications, files, and folders in Windows 10. Let’s get started.

Method #1

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.

Method #2

Note: This method doesn’t work for folders. However, it can work for files and applications.

Steps

  1. First, back up the Registry.

  2. Now, open the Registry Editor and navigate to the following location: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > App Paths.

  3. Right-click on the “App Paths.” Hover your mouse over “New” and then select “Key.”

  4. 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). Application name and .exe

  5. 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.
    Executable file path in the Value data field

  6. 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.

Like this guide? Share it with your friends.

Also see:

How to Open Elevated Command Prompt in Windows 10