Environment.MachineName : Environment « System « VB.Net by API






Environment.MachineName

  

Namespace MyApp.Info
    Module Main
        Sub Main()
            Dim objHW As New MyApp.Info.Utilities
            objHW.DisplayData()
        End Sub
    End Module

    Public Class Utilities
        'Run the application
        Public Sub DisplayData()
            Console.WriteLine(Environment.MachineName)
            Console.WriteLine(Environment.SystemDirectory)
            Console.WriteLine(Environment.GetLogicalDrives())
            Console.WriteLine(Environment.Version.ToString())
        End Sub
    End Class
End Namespace

   
    
  








Related examples in the same category

1.Environment.CommandLine
2.Environment.CurrentDirectory
3.Environment.Exit
4.Environment.ExitCode
5.Environment.GetCommandLineArgs
6.Environment.GetLogicalDrives
7.Environment.HasShutdownStarted
8.Environment.NewLine
9.Environment.OSVersion
10.Environment.ProcessorCount
11.Environment.SpecialFolder.CommonProgramFiles
12.Environment.SpecialFolder.Favorites
13.Environment.StackTrace
14.Environment.SystemDirectory
15.Environment.TickCount
16.Environment.UserDomainName
17.Environment.UserInteractive
18.Environment.UserName
19.Environment.Version
20.Environment.WorkingSet