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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
>

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to