Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

script to pin/unpin metro app from Windows 8 start menu

$
0
0

hi,

i was trying to pin metro apps to start menu in a windows 8 machine using the VB script which i was using to pin applications to the start menu of a Windows 7 machine.the script is pinning metro apps to the task bar but it is unable to pin the metro apps to the start menu.

This is what i was using to pin the apps to start menu :-

If objFSO.FileExists("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\APP.lnk") Then
    Set objFolder = objShell.Namespace(strAllUsersProgramsPath & "\Accessories\")
    Set objFolderItem = objFolder.ParseName("app.lnk")
    Set colVerbs = objFolderItem.Verbs
    For Each objVerb in colVerbs
        If Replace(objVerb.name, "&", "") = "Pin to Start Menu" Then objVerb.DoIt
        Next
End If

Please provide a suitable way of doing this.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>