The new std.process is ready for review
Steven Schveighoffer
schveiguy at yahoo.com
Tue Feb 26 06:27:51 PST 2013
On Tue, 26 Feb 2013 09:13:01 -0500, Vladimir Panteleev
<vladimir at thecybershadow.net> wrote:
> 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.
Oh, I thought that was the desired behavior, I misread the above post...
-Steve
More information about the Digitalmars-d
mailing list