Thread: ADSystemInfo
View Single Post
  #1 (permalink)  
Old February 23rd, 2006, 05:02 PM
Seeker55 Seeker55 is offline
Authorized User
 
Join Date: Feb 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADSystemInfo

What is wrong with this code?

<p><script type=text/vbscript language=vbscript>
        set objnet=createobject("ADSystemInfo")
        set struser=objnet.username
        set count1=1
        do until right(struser,1)=chr(44)
          set strname=left(struser,count1)
          count1 = count1+1
        loop
        document.write("Welcome " + strname)
        </script></p>
When I take out the loop stuff and do document.write("Welcome " + objnet.username) the distinquished name shows on my page but when the above code is added nothing shows at the top of my page.

seeker55

Reply With Quote