No, I suspect that will give the user name ColdFusion is
running under,
if anything at all.
Is this over a well defined intranet or are you trying
something over
the entire world wide web internet?
On a well defined intranet where the systems can see each
other there is
some type of net state utility that can give some details
from a
computer with the IP address, which can be found in the CGI
scope. At
least there is on a Windows machine and network.
I know I once used this to have a intranet web page show the
machine
name of a logged in user to aid our help desk. The ColdFusion
code used
<cfexecute...> to run a DOS command that retrieved the
machine name
across the corporate's Windows network. They could ask Mary
Jane Von
Der Longname to look in the corner of the intranet home page
to find out
their machine name easily and quickly.
Since otherwise only 1% of the users would know this without
detailed,
step-by-step, walk-through instructions. And many of the
remaining 99%
would still fail even with such instructions.
I see now that you want Coldfusion to give you a Windows
username. My suggestion is indeed of little use to you. Coldfusion
is only aware of usernames that were logged in within a Coldfusion
context.
You should do it in a Windows context. Ian Skinner's
cfexecute suggestion would then be, in my opinion, the best method.
emmim44 wrote:
> I am trying to execute this '<cfexecute name="u"
arguments="echo %username%"></cfexecute>
ColdFusion does not have a PATH environment variable that
allows it to
just give the command. You have to provide the fully
qualified path to
the 'echo' executable.