vb.net environment class

The .net framework provides this useful class which can retrieve information about the os like os version , currently logged in user , and system variables like the path where windows is installed (windir) with it’s various methods and functions.

How this can be useful ?

Suppose you are making an application which will copy a file to the user’s directory where windows is installed . Let’s say in my computer it is c drive it may be d or e drive in user’s pc so with environment.getenvironmentvariable method we pass the parameter “windir” which returns the path where windows is installed and makes our work so simple

Read about other functions and methods of environment class here

http://msdn.microsoft.com/en-us/library/z8te35sa.aspx

If you have any problems use idealprogrammer forums