'Delete Compress Old Files, 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 & """" &_
 " RunAsAdministrator", , "runas", 1
Else

sMsg = "This script will fix Delete compress old files." & vbCr & vbCr _
 & "This action will DELETE a Registry Key." & 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?"

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If sInput = vbYes Then 

WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\CurrentVersion\Explorer\VolumeCaches\Temporary Files\LastAccess", 0, "REG_DWORD"
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files\"

sDone = "The registry key has been Deleted!." & vbCr & vbCr _
& "Compress files have been removed." & vbCr & vbCr _  
& "This script was downloaded from www.paulsxp.com."
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"

If MsgBox("If this script helped you fix your problem, would you like to make a Donation?." & vbCr & vbCr & "Would you like visit my Donation page at Paul's Web Site now?", vbQuestion + vbYesNo + vbDefaultbutton, "Make a Donation") = vbYes Then
WshShell.Run "http://www.paulsxp.com/donation.html"
End If

Else 
sCancel = "Action was Canceled"  &vbCr & vbCr _
 &  "This script was downloaded from www.paulsxp.com."
MsgBox sCancel, 48, "Nothing Done" 
End If
End If
