With xp it's easy to pin items to the start menu, by simply adding a com reference to "Windows script host object model"
Pin
UnpinCode:CreateObject("Shell.Application").Namespace(Environment.SystemDirectory).ParseName(fileName_Ext).InvokeVerb("P&in to Start Menu")
EDIT: This example looks in the system32 folder for the file name specified as fileName_Ext.Code:CreateObject("Shell.Application").Namespace(Environment.SystemDirectory).ParseName(fileName_Ext).InvokeVerb("Unp&in from Start Menu")
However, this doesn't seem to work on Vista.
Does anyone know if this is possible with Vista?




Reply With Quote