Windows 7 Search: Treat ".url" files as "Programs"

4

Is there a way to configure Windows 7 search (on the Start menu -- the "Search Programs and Files" field) to treat files of type ".url" as "Programs"?

The reason I ask -- I want to be able to enter the filename of a ".url" file in that field (without the ".url" extension), and then be able to run it by simply hitting enter, just as this can be done for files of type ".exe", ".lnk", and others. (The behavior for the ".url" file would be to open the target URL in my default web browser.)

Currently, Windows 7 search finds my ".url" file, but it categorizes it as a "File" rather than as a "Program" -- and therefore I have to arrow key down to that search result instead of being able to simply hit Enter.

Update: Currently I have my .url files placed into a directory called C:\utility\shortcuts, which I have manually added to my %PATH% (via the normal means, in System Properties). I could locate them elsewhere if it would make a difference, though.

Jon Schneider

Posted 2011-04-03T21:13:51.567

Reputation: 893

2Where are the .url files located? All of the .url files in my Start Menu directory show up under Programs in the Start menu search. – Patches – 2011-04-03T23:10:55.717

you might want to give this a shot http://www.humanized.com/enso/launcher/ you can add website shortcuts into it.

– Riguez – 2011-04-03T23:20:50.270

Argh. There's a way to do this, I just know it. I don't know why I can't think of it right now! – Iszi – 2011-04-15T19:38:55.720

@00101010 - Thanks for the suggestion. I'm familiar with "launcher" programs like SlickRun and Launchy; I actually use SlickRun heavily on my Windows XP PC at work. The goal behind this question, however, is to see if I can configure Windows 7 to itself meet my requirements as a "launcher" -- that is, to be able to run various programs and open various URLs by typing in a keyword and hitting Enter -- without needing to install 3rd-party software for this purpose. – Jon Schneider – 2011-05-12T19:05:40.900

@Patches - I tried moving my folder with my .url shortcuts to under c:\Program Files (x86)\ but this didn't quite get me there; if I key in website.url into "Search programs and files" it does show up as a Program, but if I just key in website (which is my goal), nothing shows up in the search results. I tried adding .url to my PATHEXT environment varible, but this didn't do the trick either. Still looking for a solution! – Jon Schneider – 2011-05-16T03:31:45.970

1@Jon: It's the Start Menu directory, not the Program Files directory. I'll post specifics as an answer. – Patches – 2011-05-16T05:06:54.860

Answers

3

For .url files (or any other shortcut) to appear under Programs in the Windows Start Menu search, they need to be located somewhere in the Start Menu directory (which means they'd appear under All Programs).

The easiest way to access the Start Menu directory is to right-click on All Programs in the Start Menu and choose Open. (Alternatively, choose Open All Users to make it appear as a search result for all user accounts on the system, not just the one you're currently logged into. Administrative privileges are required in this instance.) You can then put them wherever you like in that directory.

The actual location on disk on default Windows configurations is C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu for the per-user directory or C:\ProgramData\Microsoft\Windows\Start Menu for the systemwide directory.

Patches

Posted 2011-04-03T21:13:51.567

Reputation: 14 078

this worked! I created a folder called shortcuts under Start Menu\Programs and put my website.url file in there, and I can now just type website (without the trailing ".url") at the "Search Programs and Files" field and hit Enter to launch the website in a new tab in my default browser. Thank you! :-) – Jon Schneider – 2011-05-18T02:30:44.503