vbscript - Get list of links pinned to the taskbar -
vbscript - Get list of links pinned to the taskbar -
is there anyway retrieve list or table or of of applications/links have pinned taskbar in vbscript?
i have script unpins ones looking them in start menu i'm running on different brands of computers out of box (part of setup script) different brands of computers pin different applications taskbar default.
i want list of whatever there , phone call unpin link
this illustration of code utilize unpin item
if objfso.fileexists(strcurrentuserstartfolderpath & "\programs\internet explorer.lnk") set objfolder = objshell.namespace(strcurrentuserstartfolderpath & "\programs") set objfolderitem = objfolder.parsename("internet explorer.lnk") set colverbs = objfolderitem.verbs each objverb in colverbs if replace(objverb.name, "&", "") = "unpin taskbar" objverb.doit next end if
this print list of items pinned taskbar of list of available verbs each item.
const appdata = &h1a set oshell = createobject("shell.application") set oappdata = oshell.namespace(appdata) sappdata = oappdata.self.path set otaskbar = oshell.namespace(sappdata & "\microsoft\internet explorer\quick launch\user pinned\taskbar") each oitem in otaskbar.items wscript.echo oitem.name each overb in oitem.verbs wscript.echo " " & overb.name next next
vbscript taskbar
Comments
Post a Comment