epo Posted December 11, 2015 Share Posted December 11, 2015 HiBelow 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_logsb) Check tms.log size (ie : 100mb)c) Minimize windows explorerd) Run above script & msgbox shows 100mbe) Let the taskmaster appl run for few days to increase the logf) Run above script again after few days & msgbox still shows 100mbg) Maximize windows explorer then in a blink, suddenly log size increase to 200mbh) Minimize windows exploreri) Run above script & msgbox shows 200mbQuestions :-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... Link to comment Share on other sites More sharing options...
TheSaint Posted December 11, 2015 Share Posted December 11, 2015 You could try sending an F5 (refresh) before doing your Size query.It would seem your system (Explorer, etc) has gone to sleep, so until it is refreshed you may only get what is in memory. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
JohnOne Posted December 11, 2015 Share Posted December 11, 2015 Yes, probably only flushed to disk when explorer is interacted with.Weird though, definitely a windows issue, I'd say. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
epo Posted December 11, 2015 Author Share Posted December 11, 2015 You could try sending an F5 (refresh) before doing your Size query.It would seem your system (Explorer, etc) has gone to sleep, so until it is refreshed you may only get what is in memory.U mean open windows explorer & send F5 & minimize it back ? Link to comment Share on other sites More sharing options...
JohnOne Posted December 11, 2015 Share Posted December 11, 2015 I'd look for a setting in Taskmaster for logging, see if anything stands out. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
TheSaint Posted December 11, 2015 Share Posted December 11, 2015 Whatever works.If Explorer is minimized, as you seem to have indicated, then you may need to Restore it first or make it active ... that might be enough or you may need to use F5 as well. Or you could simply close and re-open Explorer at that location. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
TheSaint Posted December 11, 2015 Share Posted December 11, 2015 (edited) Is this on a Laptop?Regardless, I imagine it is a Windows issue as JohnOne said, probably tied into power saving or somesuch. Edited December 11, 2015 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
epo Posted December 14, 2015 Author Share Posted December 14, 2015 I'd look for a setting in Taskmaster for logging, see if anything stands out.Checked aldy & nothing wrong with it...Is this on a Laptop?Regardless, I imagine it is a Windows issue as JohnOne said, probably tied into power saving or somesuch.Nope... It's physical server running on Win 2008... Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 14, 2015 Share Posted December 14, 2015 If it only happens when you have Explorer open to that folder then why do you have it open?Have you tried running FileGetSize() multiple times? (just a guess) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now