Use the Environment.GetFolderPath method to return and display the path associated with the folder parameter. : Environment Setting « Windows System « VB.Net






Use the Environment.GetFolderPath method to return and display the path associated with the folder parameter.

  

Imports System

Class Sample
   Public Shared Sub Main()
      Console.WriteLine()
      Console.WriteLine("GetFolderPath: {0}", Environment.GetFolderPath(Environment.SpecialFolder.System))
   End Sub
End Class

   
    
  








Related examples in the same category

1.Get System Exit CodeGet System Exit Code
2.Has Shutdown StartedHas Shutdown Started
3.Get Machine NameGet Machine Name
4.Get System New Line CodeGet System New Line Code
5.Get OS VersionGet OS Version
6.Get Processor CountGet Processor Count
7.Get Sysstem DirectoryGet Sysstem Directory
8.Get Tick CountGet Tick Count
9.Get .Net Runtime Environment Version NumberGet .Net Runtime Environment Version Number
10.Get Working SetGet Working Set
11.Display System Stack TraceDisplay System Stack Trace
12.List your environment SettingList your environment Setting
13.Get Environment Variable by NameGet Environment Variable by Name
14.Adding Favorites