CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Jun 2004
    Location
    NH
    Posts
    678

    Pin to Start Menu in Vista

    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
    Code:
    CreateObject("Shell.Application").Namespace(Environment.SystemDirectory).ParseName(fileName_Ext).InvokeVerb("P&in to Start Menu")
    Unpin
    Code:
    CreateObject("Shell.Application").Namespace(Environment.SystemDirectory).ParseName(fileName_Ext).InvokeVerb("Unp&in from Start Menu")
    EDIT: This example looks in the system32 folder for the file name specified as fileName_Ext.

    However, this doesn't seem to work on Vista.
    Does anyone know if this is possible with Vista?
    Last edited by TT(n); August 3rd, 2008 at 08:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured