WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.


Process ID

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

tGetData error 224.

Keywords: 	 tGetData error 224.


My code:
counter = '\\MYMACHINE\Process(MYPROCESS)\%% Processor Time'
nTime=tGetData(counter ,1)
Errors out with
224: An argument is not correct or is incorrectly formatted.

NOTE: I can read this counter fine via perfmon, but it errors when I use tGetData.

Another strange thing is the script works on another nt4 server at work, and works on my 2000 pro machine at home, but bombs on the nt4 server I actually want to run it on.


The error 224, basically is an invalid could mean the counter string passed to the function is invalid. But it sounds like you have confirmed this to be a valid counter string.

Make sure you are running version 10006 of the process extender. There have been some changes to the function tGetData.....

Apparently *some* counters require retrieving two samples of performance data, inorder to properly calculate the data returned. % processor time is one of those. We modified the function tGetData, to handle these types of counters.

Article ID:   W14551
Filename:   tGetData error 224.txt
File Created: 2017:07:28:13:58:39
Last Updated: 2000:10:19:10:29:30