How to Create Your Own Run Command

Run Command dialog box is an easy way to open programs in Windows.

By default, you can use predefined commands and there are many methods available to create your own command for your favorite applications, files, and folders.

In this post, we will see the 2 easy methods to do this task. Let’s get started.

Create Your Own Run Command


Adding Registry Keys

You can create own Run command by adding keys in Windows Registry.

But, before making any changes in the Registry, I suggest you to take a backup of the Registry.


  • Open Run command (Windows key + R) and type “regedit”.
  • In the Registry editor, navigate to the following section:
  • HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows >

    CurrentVersion > App Paths

  • Now, right click on "App Paths".
  • Select New > Key.
  • Selecting New > Key in Registry
  • Type the name of the key and .exe [it is your custom run command]. In this instance, I’m creating a shortcut for mhotspot, so I want to create a command like this “mhotspot.exe”.
  • In the right pane, you can now see the (Default) key.
  • Right click it and select “modify...”.
  • In the value data field, provide the URL of the mhotspot executable file.

That’s it. Now, you’ve successfully created the run command formhotspot. From now on, when you type "mhotspot" in the Run box, it will openmhotspot.


Creating Shortcuts and Placing it in Windows Folder


  • Create a shortcut for your favorite applications, files or folders.
  • Rename the shortcut as per your liking (that is your command).
  • Now, place the shortcut in the Windows folder.

The advantage of this method is that it not only creates commands for files and programs, it also creates a command for the folders too.

Additional Hint

There is one thing you need to remember while creating command [using the above methods]. You shouldn't give a space between the command.

For instance, take mhotspot. If you try to create a command for mhotspot like "m hotspot", then it won't work.

I hope that this post is useful to you. If you like this post, share with your friends.

How to Create Your Own Run Command

Click to Tweet This Post

Also see:

Do NOT follow this link or you will be banned from the site!