Doc..

Looks like a great script..

I think you can clean up a bit of the script. \:\)

From:
 Code:
Select
  Case KeyExist($BaseKey+'12.0\Outlook\Security')
    $OLTempFolder = ReadValue($BaseKey+'12.0\Outlook\Security','OutlookSecureTempFolder')
    $RC = ClearOutlookTemp(3)
  Case KeyExist($BaseKey+'11.0\Outlook\Security')
    $OLTempFolder = ReadValue($BaseKey+'11.0\Outlook\Security','OutlookSecureTempFolder')
    $RC = ClearOutlookTemp(3)
  Case KeyExist($BaseKey+'10.0\Outlook\Security')
    $OLTempFolder = ReadValue($BaseKey+'10.0\Outlook\Security','OutlookSecureTempFolder')
    $RC = ClearOutlookTemp(3)
  Case KeyExist($BaseKey+'9.0\Outlook\Security')
    $OLTempFolder = ReadValue($BaseKey+'9.0\Outlook\Security','OutlookSecureTempFolder')
    $RC = ClearOutlookTemp(3)
  Case 1
    ;Unable to locate the folder path so exit the script and set error to 3 
    $OLTempFolder = ""
    Exit 3
EndSelect


To:
 Code:
    ; -- Determine version of Outlook
    $exe=ReadValue('HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE','')
    $ver=SPLIT(GetFileVersion($exe),'.')[0]+'.0'
    $OLTempFolder = ReadValue($BaseKey+$ver+'\Outlook\Security','OutlookSecureTempFolder')
    $RC = ClearOutlookTemp(3)


Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's