windows 7 - Use PowerShell to add and remove shortcuts from Explorer's favorite bar -
is there way use powershell manage explorer's shortcut?
for example, remove 7346
add link ~/projects/9999
?
favourites in explorer shortcuts in \links
folder in profile. if want remove 7346:
rm $home\links\7346.lnk
creating 1 rather cumbersome in ps:
$wshshell = new-object -comobject wscript.shell $shortcut = $wshshell.createshortcut("$home\links\9999.lnk") $shortcut.targetpath = "$home\9999" $shortcut.save()
adjust target path if 9999 doesn't sit in root of user profile.
Comments
Post a Comment