Don't know if you would consider this SIMPLE, but here's what I use: <cfregistry action="GET" branch="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerNa me\Act iveComputerName" entry="ComputerName" type="Any" variable="ComputerName">
<cfswitch expression="#ComputerName#"> <cfcase value="Server1"> <cfset request.serverid = "1"> </cfcase> <cfcase value="Server2"> <cfset request.serverid = "2"> </cfcase> <cfdefaultcase> <cfset request.serverid = "0"> </cfdefaultcase> </cfswitch> -----Original Message----- From: Neil H. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:39 PM To: CF-Talk Subject: Machine Name Is there a server variable or a SIMPLE way to get the machine name? Thanks, Neil ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists