Dim wnet
Set wnet=CreateObject("Wscript.Network")
strUsername=wnet.username
MsgBox (strUsername, 0, "Who Is Logged In?")
--
need to e-mail me off list just get rid of "your fears" and
drop me a line.
Quote:
> how about
> MsgBox(strMsg, 0, "Whos logged in")
> Sorry, can't help you with how to get who is logged in into strMsg
> > how would you add a msg box that would say..
> > with the same tittle bar "Whos logged in?" with the
> > name of the person logged in... with this script?
> > MsgBox objNet.UserName (You are logged in?),,
> > cTitlebarMsg ??????
> > -----------------------------
> > set objNet = CreateObject("Wscript.Network")
> > szUser = objNet.UserName
> > Const cTitlebarMsg = "Whos logged in?"
> > QuestionOne = MsgBox("Do you want to know whos logged
> > in?", 4, cTitlebarMsg)