Hi Below is the code WinMinimizeAll()
Local $aaa = FileGetSize ( "D:\Datacap\Taskmaster_logs\tms.log" )
MsgBox($MB_SYSTEMMODAL, "", ByteSuffix($aaa))
Func ByteSuffix($iBytes)
Local $iIndex = 0, $aArray = [' bytes', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB']
While $iBytes > 1023
$iIndex += 1
$iBytes /= 1024
WEnd
Return Round($iBytes) & $aArray[$iIndex]
EndFunc ;==>ByteSuffixNot sure script prob or autoit prob... Scenario is like this :- a) Open windows explorer & browse to D:\Datacap\Taskmaster_logs b) Check tms.log size (ie : 100mb) c) Minimize windows explorer d) Run above script & msgbox shows 100mb e) Let the taskmaster appl run for few days to increase the log f) Run above script again after few days & msgbox still shows 100mb g) Maximize windows explorer then in a blink, suddenly log size increase to 200mb h) Minimize windows explorer i) Run above script & msgbox shows 200mb Questions :- 1) To get the currect log size via $filegetsize, windows explorer need to be refreshed or closed ? 2) Any additional script to add to refresh the log size in $filegetsize ? Thx in advance...