Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To detect Virtual Server Environment
Message
 
 
À
22/08/2011 09:53:21
Jarid Griesel
The Innovix Technology Group (Pty) Ltd
Johannesburg, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01521472
Message ID:
01521477
Vues:
102
Check http://addicted-to-it.blogspot.com/2006/02/wmi-using-wmi-to-detect-machines.html
loLocator 	= CREATEOBJECT('WBEMScripting.SWBEMLocator')
loWMI		= loLocator.ConnectServer() 
loWMI.Security_.ImpersonationLevel = 3  		&& Impersonate

loCS = loWMI.ExecQuery("Select * from Win32_ComputerSystem",,32)

FOR EACH loObj IN loCS
	? loObj.Model
ENDFOR
>Can anyone please tell me how I can get my VFP application to detect if it is running on a virtual server or if it is running in Windows XP mode on Windows 7
>
>TIA
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform