oleg Posted October 27, 2005 Share Posted October 27, 2005 Is it possible to capture a size of data written to the disk by a process or transferd thru network ? There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
BigDod Posted October 27, 2005 Share Posted October 27, 2005 Is it possible to capture a size of data written to the disk by a process or transferd thru network ?See this topic Here or search the forums for progress Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
oleg Posted October 27, 2005 Author Share Posted October 27, 2005 Thanks but this is not exactly what i need now There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
w0uter Posted October 27, 2005 Share Posted October 27, 2005 the one way i could think of how to do this is to hook the windows api. but AFAIK autoit cant do this. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Confuzzled Posted October 28, 2005 Share Posted October 28, 2005 (edited) Is it possible to capture a size of data written to the disk by a process or transferd thru network ? You looking for process info?Try the WMI.Sample stuff (search the forums here for Scriptomatic)$objWMIService = ObjGet("winmgmts:\\localhost\root\CIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_Process", "WQL", 0x10 + 0x20) If IsObj($colItems) Then for $objItem in $colItems ;these are the variable I think you are looking for - do what you need to here #cs $objItem.Name $objItem.ProcessId $objItem.ReadOperationCount $objItem.WriteOperationCount; To disk $objItem.ReadTransferCount $objItem.WriteTransferCount; To network #ce MsgBox(0,"Task details", "Task name: " & @TAB & $objItem.Name & @CRLF & _ "Process ID: " & @TAB & $objItem.ProcessId & @CRLF & _ "Read operations (to disk): " & @TAB & $objItem.ReadOperationCount & @CRLF & _ "Write operations (to disk): " & @TAB & $objItem.WriteOperationCount & @CRLF & _ "Read operations (to network): " & @TAB & $objItem.ReadTransferCount & @CRLF & _ "Write operations (to network): " & @TAB & $objItem.WriteTransferCount, 30) next EndIfGood luck![edit]Added MsgBox to code so you can see see real information[/edit] Edited October 29, 2005 by Confuzzled Link to comment Share on other sites More sharing options...
oleg Posted October 28, 2005 Author Share Posted October 28, 2005 (edited) WMI thats what i thought Thanks will try -------------------------------------------------------------------------- I have tried but the counter is always zero even in task manager i see the same value Any ideas ? Edited October 28, 2005 by oleg There is a hex ( 31303030303030 ) reasons i love AutoIt ! Link to comment Share on other sites More sharing options...
Confuzzled Posted October 29, 2005 Share Posted October 29, 2005 I added a MsgBox so you can see some real information from your system. Try it now. 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