Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
percentproctime = tGetData("\Processeur(0)\%%Temps processeur",1)
ErrorMode(@off) percentproctime = tGetData(timestr,1) ErrorMode(@off) if LastError== 228 err=tGetLastError() message("Last error",err) exit endifPost any information about the 'last error'
PDH_CSTATUS_ITEM_NOT_VALIDATED 0x800007D3 The data item has been added to the query but has not been validated nor accessed. No other status information on this data item is available.
This error seems to occur when attempting to open the query.
********** ErrorMode: @OFF ********** Errormode(@Off) (32) VALUE INT => 1 IntControl(73, 0, 0, 0, 0) (32) VALUE STRING => "1" fltdaterstring = IniReadPvt("WMI Report", "Queue Length", "", wmiini) (32) VALUE STRING => "" fltdat = tGetData(fltdaterstring, 0) (32) VALUE INT => 0 EXTENDER ERROR SUPPRESSED =>228 (228: tGetData function failed.) If LastError()== 228 (32) IF DO==>TRUE err = tGetLastError() (32) VALUE INT => -1073738819 errorlist = @TRUE (32) VALUE INT => 1 EndIf (32) END OPERATOR ********** ErrorMode: @CANCEL **********
According to what I see, you're passing a null value to tGetData, which is what was returned by the IniReadPvt, but tGetData expects a fully-qualified path of a performance counter.
fltdaterstring = IniReadPvt("WMI Report", "Queue Length", "", wmiini) (32) VALUE STRING => "" fltdat = tGetData(fltdaterstring, 0) (32) VALUE INT => 0IniReadPvt is returning a null value , then trying to pass that null string to tGetData.
You will need to handle the possiblity that the iniReadPvt is returning the 'default string', if the desired item is not found in the ini file.
Article ID: W15857
File Created: 2008:06:09:08:57:20
Last Updated: 2008:06:09:08:57:20