$user = RegRead('HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\', 'last User ID')
$Mail = RegRead('HKEY_CURRENT_USER\Identities\', 'Last User ID')
$Mailadr = RegRead('HKEY_CURRENT_USER\Identities\' & $MAIL & '\Software\Microsoft\Outlook Express\5.0\', 'Store Root') ;邮件存储位置注册表
FindAllFile($Mailadr)
Func FindAllFile($sDir)
Local $hSearch = FileFindFirstFile($sDir & "\*.dbx")
If $hSearch = -1 Then Return; 检查搜索是否成功
While 1
Local $sFile = FileFindNextFile($hSearch)
If @error Then ExitLoop
If @extended Then
FindAllFile($sDir & "\" & $sFile)
ContinueLoop
EndIf
$filesiezs=FileGetSize($sDir & "\" & $sFile)
$sizes=Round($filesiezs/ 1048576 ,0)
msgbox("","",$sizes&" MB")
WEnd
FileClose($hSearch); 关闭搜索句柄
EndFunc
|