Wednesday, January 29, 2003

Determining which CFMX Updater your server is running

Have you wondered which version of CFMX your server is running? meaning it's the base version or one of the updaters (1 or 2 available currently)? You can find out what internal version numbers relate to what updater. See technote 23692 for that mapping of version numbers to updaters.

One strange thing: the technote currently doesn't tell you how to get the current version for your server using code. It presumes you have access to the Admin or the directories in which CFMX is installed. To determine your version, output the CF variable Server.ColdFusion.ProductVersion. While you're at it, if you want to know if it's running Professional or Enteprise, look at Server.ColdFusion.ProductLevel.

Aw heck, here's a routine to determine the current version AND tell you what updater you're running! :-) Save it as getCFMXVersion.cfm and simply run it. You could also call it as a custom tag if desired (cf_getCFMXVersion). I'll post it to the MM Dev Exchange today:

The version I had here has been updated since. See the posting on 3/19 for the latest code.

No comments: