Thanks for your reply Nicholas. Can you explain how we
can call the SetEnvironmentVariable through the P/Invoke
layer? Thanks a lot in advance.[color=blue]
>-----Original Message-----
> There is no managed way to set the environment[/color]
variable strings.[color=blue]
>Rather, you will have to call the SetEnvironmentVariable[/color]
function through[color=blue]
>the P/Invoke layer.
>
> If you are using .NET 2.0, then you can use the[/color]
static[color=blue]
>SetEnvironmentVariable method on the Environment class.
>
> Hope this helps.
>
>
>--
> - Nicholas Paldino [.NET/C# MVP]
> -
mvp@spam.guard.caspershouse.com
>
><anonymous@discussions.microsoft.com> wrote in message
>news:324a01c4c046$9d78f450$a301280a@phx.gbl...[color=green]
>> Hi all, I am trying to append a certain string to the
>> PATH environment variable programmatically. I am able[/color][/color]
to[color=blue][color=green]
>> read what is in the variable using the[/color][/color]
System.Environment[color=blue][color=green]
>> method GetEnvironmentVariable("path"). However, I don't
>> know yet how to append strings to the path variable.[/color][/color]
Any[color=blue][color=green]
>> help is appreciated. Thanks a lot.[/color]
>
>
>.
>[/color]