'Disable Low disk space warning message

Dim WshShell, sMsg, sDone, sInput

Set WshShell = WScript.CreateObject("WScript.Shell")

Msg = "This script will Disable low disk space warning message." & 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(Msg, vbYesNo + vbInformation, "Paul's XP, Vista and WIndows 7 Tweaks")
If sInput = vbYes Then 

WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoLowDiskSpaceChecks", 1, "REG_DWORD"

sDone = "Low disk space warning message is now Disabled!" & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sDone, 48, "Finished"
End If

