I'm just trying to do a simple script to monitor some process and the amount of memory they consume. I've had a look at tGetProcInfo and this will show me the Working Set size, but I'm actually looking to try get the Private Working Set size, is there any way to do this in Winbatch?
Thanks
Many ways including WMI and dotNet but since you mentioned the process extender:
; Private working set of the browser I am currently using to enter this reply.
counterstring="\Process(Firefox)\Working Set - Private"
intdat=tGetData(counterstring,0)
fltdat=tGetData(counterstring,1)
Message("tGetData for %counterstring%",StrCat("Float Value: ",fltdat,@CRLF,"Int Value: ",intdat))