Is there a way to map a command to the keyboard to open a program or a file in Windows?

1

Is there a way in Windows to map a command to open a program and a file location to the keyboard?

V. Martins

Posted 2016-12-02T23:47:02.620

Reputation: 13

To the close-voter: This is not a learning request. OP didn't know this feature was built-in and so phrased the question assuming they'd need third-party software, which MIGHT have been off topic. Please be more careful in your close votes in the future. – music2myear – 2016-12-03T00:29:44.743

Answers

1

This feature is built-in to Windows and has been for a long time.

So long as you have a shortcut to the program or file location, you can right click on that shortcut and select Properties.

In the Shortcut tab there is a field called Shortcut key, click here and then do the shortcut you wish to use to run that program.

There are some limitation on the type of shortcuts you can use, as Windows uses many shortcuts for default commands and these cannot be remapped by default.

Generally, you'll end up with CTRL-ALT- as your shortcut.

Advanced Method

Another way to do this is to create a folder anywhere on your computer, and then add the path to that folder to your PATH statement, then fill that folder with shortcuts to files, folders, programs, etc, and rename each of the shortcuts in that folder using acronyms or shortened forms.

Then you can "call" the items in this folder using the Run box, command prompt, or other methods.

I personally ran this method for years in my early IT career.

I'd open Firefox by pressing WIN+R, entering "FF", and hitting the Enter key.

music2myear

Posted 2016-12-02T23:47:02.620

Reputation: 34 957

You're quite welcome. – music2myear – 2016-12-03T01:10:37.630