Jump to content

Creating a shortcut in the Start Menu Frequent Programs space


Recommended Posts

I''m trying to create a shortcut to a network share that will appear in the start menu, above "All Programs" where the frequent programs are usually listed. I clear that list on pretty much every computer and use the space for specific shortcuts to folders.

I'm assuming these are just .lnk files somewhere, but they don't seem to be in the usual Start Menu folder buried in documents and settings.

Presumably once I found the location, I could just use AutoIt's FileCreateShortcut. Anyone know where it is?

By the way, I discovered AutoIt 2 days ago, am now completely hooked! Big thanks to everyone on the forums; I've gotten stuck a half dozen times and have (until now) always found an answer somewhere here.

OK, I'll stop sucking up now. :D

Link to comment
Share on other sites

@StartMenuCommonDir or @StartMenuDir I believe you want. It is the parent folder from where the other shortcut folders are.

Been there, but unfortunately I think that folder points to the contents of "All Programs"... shortcuts in the root of @StartMenuDir appear above the list of program folders in the All Programs bit (Accessories, Games etc).

That's not the folder I'm looking for - I'm trying to find the place where "pinned" shortcuts go - above the All Programs button, not inside it.

I've come across a vbasic (I presume) script by Scripting Guy (here it is) but it relies on the context menu, and that only seems to have a "pin to Start Menu" item for executables.

I know you can add folders to the Frequent Programs bit simply by dragging them across, so there must be a way. Somehow...

Link to comment
Share on other sites

AutoIt Beta can do that using Com.

$objShell = ObjCreate("Shell.Application")
$objFolder = $objShell.Namespace("C:\Windows\System32")
$objFolderItem = $objFolder.ParseName("calc.exe")

$objFolderItem.InvokeVerb("P&in to Start Menu")

Edit:

Retry with Code Tags. AutoIt tags back fired. :D

Edited by MHz
Link to comment
Share on other sites

AutoIt Beta can do that using Com.

$objShell = ObjCreate("Shell.Application")
$objFolder = $objShell.Namespace("C:\Windows\System32")
$objFolderItem = $objFolder.ParseName("calc.exe")

$objFolderItem.InvokeVerb("P&in to Start Menu")

Edit:

Retry with Code Tags. AutoIt tags back fired. :D

Thanks for giving that a shot, MHz. Unfortunately it's not quite what I'm looking for - like I said, the context menu only has a "pin to Start Menu" option for executables, it doesn't have it for folders, & it's folders I'm wanting to pin.

At least I know how to do it for a programme now though :wacko:

----------Update-----------

Found a fix for it in the end using regedit - Fix here

Then it's a simple

RunWait("regedit.exe E:\StartPage.reg")
Edited by StooJ
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...