Set System Information and Environment Variables With VB.Net
Category:C#, VB.NET, ASP.NET
Version Compatibility: Visual Basic.NET
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.