VBScript to delete desktop short cuts in Windows 7
I have used this but didn't really do any good.
Set Shell = CreateObject("WScript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
DesktopPath = Shell.SpecialFolders("Desktop")
FSO.DeleteFile DesktopPath & "\test.lnk"
Can anyone help me please.
Thanks in advance
You need to specify the path within userprofile or alluserprofile depending on whether the shortcut exists for logged on user or all users resp.