Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To detect Virtual Server Environment
Message
 
 
To
22/08/2011 09:53:21
Jarid Griesel
The Innovix Technology Group (Pty) Ltd
Johannesburg, South Africa
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01521472
Message ID:
01521477
Views:
101
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform