Computing.Net > Forums > Programming > UserName variable VBS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

UserName variable VBS

Reply to Message Icon

Name: RMaes
Date: August 9, 2007 at 23:32:35 Pacific
OS: Win XP Pro
CPU/Ram: Pent D 1.8 / 2G
Product: /
Comment:

Can someone tell me what's the %UserName% variable for VBS ? I'm making a little script here to automate some routine tasks, but it looks like i get errors when using the %UserName% variable.
Thanks a million guys !



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: August 10, 2007 at 18:55:05 Pacific
Reply:

Set objNetwork = wscript.CreateObject("wscript.network")
MsgBox objNetwork.Username

Michael J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: UserName variable VBS

Create DOS variable - VBS www.computing.net/answers/programming/create-dos-variable-vbs/16905.html

Global variables (VB) www.computing.net/answers/programming/global-variables-vb/4868.html

access to variables, vb.net www.computing.net/answers/programming/access-to-variables-vbnet/12948.html