DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Computer User Information from DIAdem?

Is there a variable or something in DIAdem that would tell me who is logged on to a computer?  I would like to create different initial conditions for different groups of "users" and it would be great if DIAdem told me who was running my program.  I found the variable, UserDrv, which I could use, but would like to know if there are other options. 
 
Thank you,
Julia Moeller
0 Kudos
Message 1 of 3
(3,297 Views)
Hi Julia,

No, DIAdem doesn't support any commands like this. But you can use the Microsoft Windows Scripting Host. The current user is:

Dim objNet,name

Set objNet=CreateObject("WScript.Network")
name=objNet.UserDomain & "\" & objNet.UserName
msgbox name

For more info please refer to the Scripting Host help on the MS web page.

Greetings

Walter
0 Kudos
Message 2 of 3
(3,291 Views)
That is great, thank you.
0 Kudos
Message 3 of 3
(3,279 Views)