Returns the version of the Web server you are running.
PSServerClass object
psServer.Version( )
String
At runtime, Version gets the version of the Web server software from the SERVER_SOFTWARE server environment variable.
The following example tests to see which application server is running and performs platform-specific logic that varies depending on the outcome of the test:
server = psServer.Type();
version = psServer.Version();
if (server == "Apache Tomcat") {
if (version == "5.0.0") {
// Perform 5.0.0-specific logic
}
if (version == "4.1.13") {
//Perform 4.1.13-specific logic
}
}
else {
// Perform EAServer-specific logic
}