Simple script to get machine name

  • Thread starter jerry andrews via AccessMonster.com
  • Start date
J

jerry andrews via AccessMonster.com

I am looking to do some debugging for an application. It's got a hole
where I can't see who is logging in. I am looking for a very simple, self-
contained vbs program to capture the maching name and/or person logged into
it to display it in a message box. I can call the script from some
embedded code in the application but I don't have the first clue as to vbs
syntax. Once upon a time I was decent with VB6, but it's been several
years.

Any help would be greatly appreciated.

If it matters, the workstations will all be Win 2000 or WinXP.

TIA,

jerry
 
J

jerry andrews via AccessMonster.com

Doug,

Thanks for the reply. I had actually found that procedure, and it seems to
make sense. But here's where the 'stupid part' of the question comes in -
I don't have access to visual basic, so I am just trying to do a vbs
program. I thought, naively I am sure, I could just drop that into a text
editor, save it as a vbs and run it, but it obviously doesn't work. To me
this looks like a procedure that I would drop into a vb project and compile
it, then use it. I just want to know how to have this alone be the
entirety of the program.
 
D

Douglas J. Steele

Sorry: I missed the reference to VBScript. Why would you ask in a newsgroup
related to VBA if you're using VBScript?

I have no idea what newsgroups you have access to through AccessMonster.com,
but microsoft.public.scripting.vbscript would probably be a better place to
ask. On the other hand, a quick Google found
http://www.codeproject.com/vbscript/userinfo.asp
 
J

jerry andrews via AccessMonster.com

Son of a !#@$&%@#*(@#$(.

Thanks, this was late last night when i joined and i got here by a link
from a search for "vbscript foums". Somehow didn't even notice VBA...

Ok, off in search of the right location - and thanks for the suggestions
thus far.
 
Top