'Clear Search History, XP

On Error Resume Next

Dim WshShell, Message, M

Set WshShell = WScript.CreateObject("WScript.Shell")

Message = "This script will clear Search History." & vbCr & vbCr _
 & "This action will Delete Registry Keys." & vbCr & 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?"

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If M = 6 Then 

WshShell.RegDelete "HKCU\Software\Microsoft\Search Assistant\ACMru\5001\" 
WshShell.RegDelete "HKCU\Software\Microsoft\Search Assistant\ACMru\5001\"
WshShell.RegDelete "HKCU\Software\Microsoft\Search Assistant\ACMru\5604\"

Message ="Search History Cleared."& vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox Message, 64, "Paul's XP, Vista and Windows 7 Tweaks"
End If

