TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Auric__
date: 2004-07-17 21:58:00
subject: Re: Why won`t this work

On Fri, 16 Jul 2004 22:00:58 GMT, JimO wrote:

>The code works fine in the W2K pro environment but why won't it work within
>a web page.  I keep getting a cannot create object error.  Is there a
>workaround so you can access Active Directory from within IE6?
>
>Thanks,
>
>Jim
>
>
>
>Option Explicit
>
>Dim oNetwork, UserName
>
>Set oNetwork = CreateObject("WScript.Network")
>username = oNetwork.username
>MsgBox username

IIRC, you can't access wsh objects from within IE - MS's slight nod
toward security. Try asking here:
    news://microsoft.public.scripting.vbscript
-- 
auric underscore underscore at hotmail dot com
*****
Attentive customers are the bane of every business plan.
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 7/17/04 9:58:06 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.