[Haskell-cafe] Re: [Haskell-beginners] Start file with associated prog (windows only?)

Max Desyatov explicitcall at googlemail.com
Tue Aug 18 14:09:26 EDT 2009


Bernhard Lehnert <b.lehnert at gmx.de> writes:
>> Windows has a command "start" which you can use e.g. via System.Process.proc.
>
> Thank you, Magnus - this is exactly what I was looking for. (By the way,
> someone should implement something like this for GNOME and KDE,
> too ;-) )

You can do that using MIME, look at /etc/mailcap, it already contains
all what you need to run appropriate process for exact MIME-type.  As
long as it's supported in your distribution.


More information about the Haskell-Cafe mailing list