LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 19-Jun-2009, 09:46 AM
Junior Member
 
Join Date: Jun 2009
Posts: 3
lisa2004 0 reputation points
Default Novel Server name

I write a vb code to know the novell server name, but it gives me my computer name like //computername

Code:
Function get_novell_user() As String    '* This function will return the Novell Username for the currently logged-in user.    '* Returns String        Dim oShell As Object    Dim oEnvironment As Object        '* Create a reference to the Windows Script Host (WSH) shell object    Set oShell = CreateObject("WScript.Shell")    Set oEnvironment = oShell.Environment("Process")        '* oEnvironment is a collection of environment variables. Pass the key of the variable you're    '* looking for and it will return the corresponding value. In this case, the key is NWUSERNAME    get_novell_user = oEnvironment("logonserver")End Function
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 12:12 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2