Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete icons from desktop using vb script

Status
Not open for further replies.

89a677

IS-IT--Management
Nov 18, 2002
4
US
I previously deployed icons to the users destop using a vbscript and now I want to put the same icons on the Al Users desktop. How can I remove the icons which were previously deployed
 
not sure exactly what you want but this may help

declare function DestroyIcon Lib _
"user32" Alias DestroyIcon" ( _
ByVal HIcon as long) as long

(for info see msdn "destroyicon") I like doing it the hard way! OK!
 
This may help, under W2K try

KILL &quot;C:\Documents and settings\<UserName>\Desktop\<iconcaption>.lnk&quot;

cjw
 
remember shortcuts are just files. You want to delete a shortcut then just delete the file like SonOfEmidec1100 says.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top