The new std.process is ready for review
Vladimir Panteleev
vladimir at thecybershadow.net
Tue Feb 26 06:13:01 PST 2013
On Tuesday, 26 February 2013 at 14:08:34 UTC, Steven
Schveighoffer wrote:
> On Tue, 26 Feb 2013 07:20:51 -0500, Vladimir Panteleev
> <vladimir at thecybershadow.net> wrote:
>
>> On Tuesday, 26 February 2013 at 07:17:49 UTC, Lars T.
>> Kyllingstad wrote:
>
>>> 4. I would design it so that if I do browse("foo.txt") it
>>> opens foo.txt in the web browser. Correct me if I'm wrong,
>>> but it currently seems that it will open it in the user's
>>> text editor on Windows. (On POSIX systems, too, if $BROWSER
>>> isn't set.)
>>
>> I don't know how you would accomplish that on Windows, without
>> accessing the association in the OS registry for e.g. the http
>> protocol. Might be better to change the documentation instead.
>
> shell("start foo.txt");
>
> At least, I think this would work ;)
No, start uses the same function, ShellExecute. It will open
whatever is associated with .txt files, a text editor probably.
More information about the Digitalmars-d
mailing list