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?

enter image description here

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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -