> I want to programmatically get the name of the server on which CF is
> running, which I believe I can only do through the registry
> (cgi.server_name will not work).
>
> Anyone know where I should look in the registry?  A quick scan
> turned it up
> in a few different places, but I want to make sure i find
> something reliable.
>

If you don't mind writting simple c cfx's you can also do this in the middle
of the ProcessTagRequest. It comes back without the prepended \\'s, btw. Or
download the old CFX_SystemInfo.

        //what's the name of this machine?
        char ComputerName[MAX_COMPUTERNAME_LENGTH + 1];
        unsigned long cns=sizeof(ComputerName);
        GetComputerName(ComputerName,&cns);
        pRequest->SetVariable( "ComputerName", ComputerName);

--min, who sometimes forgets there's an F in CF :)


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to