XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Windows info code? https://www.bbs.xwidget.com/viewtopic.php?f=3&t=2975 |
Page 1 of 1 |
Author: | Jimking [ April 21st, 2013, 2:39 pm ] |
Post subject: | Windows info code? |
Tony,I would like to ask you if there is a code that shows info about the windows installed for example: "Windows 7 Ultimate 32-bit version xxxx service pack 1" It'll be great if you can add these info in the next version... |
Author: | Tony [ April 25th, 2013, 6:21 pm ] |
Post subject: | Re: Windows info code? |
OK, I will add this in next version as tags of RAMcore |
Author: | digigamer [ April 29th, 2013, 5:38 pm ] |
Post subject: | Re: Windows info code? |
jimking wrote: Tony,I would like to ask you if there is a code that shows info about the windows installed for example: "Windows 7 Ultimate 32-bit version xxxx service pack 1" Obviously there is existing code to this... This is in JS Code: var Computer = "."; //set to any computer you want to retrieve info "." for local computer var wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + Computer + "\root\cimv2"); var os = new Enumerator(wmi.ExecQuery("Select * from Win32_OperatingSystem"'")).item(); print(os.Caption); //do something here is some more detain on additional properties http://msdn.microsoft.com/en-us/library ... 85%29.aspx |
Author: | Jimking [ April 30th, 2013, 3:46 am ] |
Post subject: | Re: Windows info code? |
Thanks digigamer! I will try to use these... ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |