|
sorry my poor english..
This function check the size of the .pst file of outlook
$perfilusr = windows 2000 %userprofile% variable
Function CompruebaPST()
$CompPSTRadioButton.Value=1
DBGMessage ("Info", "Comprobando PST de outlook:" ) Progress( "Comprobando PST") $PSTPATH = "$perfilusr\Config~1\Datosd~1\Microsoft\Outlook\"
If Exist ($pstpath+"outlook.pst")
DBGMessage ("Info"," - PST Encontrado") $pstsize = GetFileSize($PSTPATH + "outlook.pst") $pstsize = $pstsize / (1024*1024) DBGMessage ("Info"," - Tamaño del PST " + $pstsize + " Mb ") Else DBGMessage ("Error"," PST No reside en la carpeta por defecto") EndIf
is something related to the path i think.. "if exist" find the file but getfilesize dont work, the variable $pstsize remains empty if i try to check the file size of a file in "c:\" for example.. works perfectly.. and no, the outlook.pst is´t is bigger than 2 gb [ 16. July 2003, 18:00: Message edited by: hynreck ]
|