StooJ Posted July 14, 2006 Posted July 14, 2006 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.
MHz Posted July 14, 2006 Posted July 14, 2006 (edited) Welcome, @StartMenuCommonDir or @StartMenuDir I believe you want. It is the parent folder from where the other shortcut folders are. Edited July 14, 2006 by MHz
StooJ Posted July 14, 2006 Author Posted July 14, 2006 @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...
MHz Posted July 14, 2006 Posted July 14, 2006 (edited) 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. Edited July 14, 2006 by MHz
StooJ Posted July 15, 2006 Author Posted July 15, 2006 (edited) 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. 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 ----------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 July 16, 2006 by StooJ
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now