'Enable Clear Page File, XP

Dim WshShell, sInput, Msg, sDone

Set WshShell = WScript.CreateObject("WScript.Shell")

Msg = "This script will Enable Clear Page file after LogOff." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  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(Msg, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If sInput = vbYes Then 

WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown", 1, "REG_DWORD"

sDone = "Clear Page File at LogOff is now Enabled!" & vbCr & vbCr  _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sDone, 64, "Done!"

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
End If
