'Add Disk CleanUp to the Drive Right Click Menu, Vista

Dim WshShell, ObjShell, sMsg, sDone
Set WshShell = WScript.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 add disk clean up to the right click drive menu." & 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(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If  sInput = vbYes Then 

WshShell.RegWrite "HKCR\Drive\shell\diskcleanup\", "Disk CleanUp", "REG_SZ"
WshShell.RegWrite "HKCR\Drive\shell\diskcleanup\command\", "cleanmgr.exe /d %1", "REG_SZ"

sDone = "Disk Clean Up was added to the Drive right click menu." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox sDone, 64, "Paul's XP and Vista Tweaks"
End If
End If
