.net using application variables code example Example: .net using system variables public static string? GetEnvironmentVariable (string variable);