[Mono-list] Read in environment variables
Jaroslaw Kowalski
jaroslaw.kowalski@atm.com.pl
Fri, 13 Jun 2003 10:06:48 +0200
Use:
Environment.GetEnvironmentVariable("UPLOAD_VUSER")
but, be aware that it may throw SecurityException when your EXE has not been
granted the rights to read from registry (.NET - it is possible now, Mono -
in the future)
Jarek
----- Original Message -----
From: "Joseph Roberts" <joe.roberts@seiz.com>
To: <mono-list@lists.ximian.com>
Sent: Thursday, June 12, 2003 2:33 PM
Subject: [Mono-list] Read in environment variables
> How can I read in environment variables such as $ENV{'UPLOAD_VUSER'} being
> passed into a console app. Would I just read them in as standard command
> line args??
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>