[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

[Q] get user and System Infomation

ÀÌÁö

1/2/2003 5:49:00 PM

Hi.

Happy new year~!!

Is there a way to find out
user informaiton ( login name, local account ,..etc) and
System info. ( win98, Xp .. etc.)

thanks.


1 Answer

Mattias Sjögren

1/2/2003 9:19:00 PM

0

>Is there a way to find out
>user informaiton ( login name, local account ,..etc) and
>System info. ( win98, Xp .. etc.)

Have a look at the System.Environment class, especially the UserName
and OSVersion properties. If you need more detailed information, you
can probably get it with WMI (System.Management).



Mattias

===
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.n...
Please reply only to the newsgroup.