Set System Information and Environment Variables With VB.Net

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
With this subprocedure, you can set system information or set system environment variables programmatically with VB.NET. Simply add a project reference to System.Management before building or debugging the code.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: