Skip to Content
0
Former Member
Mar 27, 2009 at 10:26 PM

Wscript error on BSP. Trying to get Windows logon id either in BSP or Webd

31 Views

HI Guys,

I am new to scripting, but trying to execute the following code on a newly created BSP:

< form name="form1" method="POST">

<input type="text" name="user">

</form>

< script language="vbScript">

Dim uname

Set ows = CreateObject("WSCRIPT.Network")

uname = ows.UserName

document.form1.user.value = uname

</script>

But the page give me the following error:

ActiveX component can't create object: 'WSCRIPT.Network'

Basically, I want to get window logon userid. Is there a way to do that? Either through BSP or Webdynpro??

Thanks in advance,

Charlie