'Remove Short Cut Arrows, Vista

On Error Resume Next

Dim WshShell, ObjShell,  sMsg, sInput, sDone, sCancel

Set WshShell = CreateObject( "WScript.Shell" )

If WScript.Arguments.length = 0 Then
Set ObjShell = CreateObject("Shell.Application")
ObjShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" & " uac","", "runas", 1
Else

sMsg = "This script will Remove the short cut arrows on the Desktop Icons." & vbCr & vbCr _
 & "This action will DELETE  Registry Keys." & vbCr _
 & "If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?"

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If sInput = vbYes Then 

WshShell.RegDelete "HKCR\lnkfile\IsShortcut"
WshShell.RegDelete "HKCR\piffile\IsShortcut"
WshShell.RegDelete "HKCR\InternetShortcut\IsShortcut"

sDone = "You must LogOff/On for this change to take effect." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"

Else 

sCancel = "Action was Canceled!"  & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sCancel, 48, "Nothing Done" 

End If
End If
