> What little hair I have is going fast.  Below is a piece of
> VBscript I copied off of the MS site, but it dies with
> errors relating to the WSCRIPT object.  All I want to do is
> to get the user's authenticated domain and username. When it
> finally works, I'll put that info into a couple of hidden
> form fields so that the server can see who the user is.
> Cannot use the CGI header vars because the proxy server is
> stripping them off before they get to my CF server.  I'm not
> much of a VBscript guy, so any help is appreciated.
>
> ...
>
> <script language="VBScript">
>    Set WshNetwork = WScript.CreateObject("WScript.Network")
>    document.write "Domain = " & WshNetwork.UserDomain
>    document.write "User Name = " & WshNetwork.UserName
> </script>

I don't think you can invoke the Windows Script engine directly from within
VBScript run in a browser. This kind of code, you typically run within a
Windows Script file - kind of like running a .cmd or .bat file locally.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Why Share?
  Dedicated Win 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=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to