std.process.system and friends

Peter Sommerfeld noreply at rubrica.at
Thu Feb 7 14:58:22 PST 2013


notna wrote:
> This works for me on Win7 with DMD2.061
>
>     http://dpaste.dzfl.pl/64529e76

Yes that works, but that was not quite the question.
The point is you cannot *set* the path variable.
But meanwhile I think it isn't a good idea anyway.
The PATH belongs to the user/system, not to programs.
Otherwise that may introduce some harm...

>> environment("PATH"] = pathSeparator ~ path ~ pathToMyDir ;
>> // failed, unidentified identifier

Yep, typo!

Peter


More information about the Digitalmars-d-learn mailing list