Detect OS version?

40 views
Skip to first unread message

Steve Cline

unread,
Jan 7, 2013, 10:59:14 AM1/7/13
to va-sma...@googlegroups.com
I want to detect whether I am on WIndows 7 vs. Windows XP (related to losing the ability to write to the root of C:, I can't change it, got to work with it) - is there a method that will let me know the version of the OS I am running?  In my case they are both 32 bit versions.
 
Thanks, Steve

Thomas Koschate

unread,
Jan 7, 2013, 2:23:44 PM1/7/13
to va-sma...@googlegroups.com
On Monday, January 7, 2013 10:59:14 AM UTC-5, Steve Cline wrote:
I want to detect whether I am on WIndows 7 vs. Windows XP (related to losing the ability to write to the root of C:, I can't change it, got to work with it) - is there a method that will let me know the version of the OS I am running?  In my case they are both 32 bit versions.

Not sure if it will work, but how about EsSystemInfo class>>#osVersion ?

Tom

Bob Brodd

unread,
Jan 7, 2013, 3:04:26 PM1/7/13
to va-sma...@googlegroups.com
Tom is right Steve, as long as you know you will only encounter Windows systems.  If there is a chance of running on other platforms, you would first want to execute System osType.  Here is a link to Microsoft version information that you may find useful.  In particular, scroll down to the bottom of the page in this link and you will find a chart which documents the version info: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724833(v=vs.85).aspx

Bob
Reply all
Reply to author
Forward
0 new messages