OperatingSystem Property (Session Object)
OperatingSystem Property (Session Object)
The OperatingSystem property returns the name and version number of the current operating system. Read-only.
Syntax
objSession.OperatingSystem
Data Type
String
Remarks
CDO returns strings in the following formats:
Operating system |
String value |
Microsoft Windows for Workgroups |
Microsoft® Windows(TM) N.k |
Microsoft Windows 95 |
Microsoft® Windows 95(TM) N.k |
Microsoft Windows NT |
Microsoft® Windows NT(TM) N.k |
The N.k values are replaced with the actual version numbers. Note that Microsoft® Windows® for Workgroups version 3.11 returns the string Microsoft® Windows(TM) 3.10. This is due to that operating system rather than to CDO.
The version number returned in the OperatingSystem property is not related to the version number returned in the Version property.
Example
This code fragment displays the name and version of the operating system:
' from the function Session_OperatingSystem
' assume objSession is a valid Session object
MsgBox "Operating system = " & objSession.OperatingSystem