The key is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName

A while ago I wrote a tag (whatserveristhis.cfm) which sets the machine name in the request scope, but only reads the registry the first time it is ever called (apparently hitting the registry with every request is not a good idea...)
If you download the tag, call it once, then go back and have a look you should get the idea.
We deploy code straight from sourcesafe, so only the "virgin" version is ever installed on a server - this tag shouldn't be copied between servers after it has been run.

http://www.bertd.net/downloads/whatserveristhis.zip

HTH
Bert

>
> -----Original Message-----
> From: Jim Davis [mailto:[EMAIL PROTECTED]
> Sent: 06 March 2004 18:23
> To: CF-Talk
> Subject: RE: Getting computer name via variables?
>
>
> We do this (on CF 4.5) buy examining the registry - I forgot
> the key, but
> it's very simple.
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to