Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with error message
Message
De
04/09/2008 17:15:40
 
 
À
04/09/2008 17:10:11
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01344973
Message ID:
01344975
Vues:
18
I looked into this article, not sure that it is any help.
tcComputer is a name of a remote computer.
As far as I understand, WMI is installed on win 2000.

>http://support.microsoft.com/kb/168054
>
>What 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform