http://support.microsoft.com/kb/168054What is the value of tcComputer? Is WMI installed on it? Do you have rights to view it?
>I am using the following code to detect running copy:
>LPARAMETERS tcComputer
>LOCAL loCIMV2, lcFileName
>
>
>loCIMV2 = GetObject('winmgmts://' + tcComputer + '/root/cimv2')
>IF TYPE('loCIMV2') = 'O'
> *!* Check for scanners servers that weren't closed last time program was closed
> loProcesses = loCIMV2.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'frtasktimetrack'")
> IF loProcesses.Count > 0
> For Each objProcess in loProcesses
> objProcess.Terminate(0)
> NEXT
> ENDIF
>ENDIF
>
>I am getitng an error:
>OLE error code 0x800401ea: Moniker cannot open file. mcheckfornonclosedservers 4
>
>Does that mean a computer does not have WMI installed? It's running Win 2000.
>
>Thanks
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"