Click here to Skip to main content
15,883,883 members
Articles / Programming Languages / Visual Basic

Simple Computer Info.

Rate me:
Please Sign up or sign in to vote.
4.75/5 (4 votes)
3 Jun 2002 91.3K   935   40  
Get HostName, Logged On User, SytemRoot, Uptime, and a few more with only a few lines of code.
Imports System.Reflection
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("")> 
<Assembly: AssemblyProduct("")> 
<Assembly: AssemblyCopyright("")> 
<Assembly: AssemblyTrademark("")> 
<Assembly: CLSCompliant(True)> 

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("78073940-8829-44B6-8580-46D363111376")> 

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:

<Assembly: AssemblyVersion("1.0.*")> 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
My biggest intrests are cars and computers.
I work for one of Nascar's 50 greates drivers
where we build race cars for some people. We
mostly build them for ourselfs to race. I was
very fortunate to have Jack Ingram to take me
under his wing and teach me how to drive LMSC.
So when we are not racing or building new cars
I spend my time learning C++ and the new .Net
languages.

Comments and Discussions