OK thanks, but if I make life a bit more complex by saying that the file
name is abc.def and it should be opened in the default browser, how could
that be done when 'def' is not a known extension?

Staffan



On Wed, Dec 12, 2012 at 4:51 PM, Mark Miesfeld <miesf...@gmail.com> wrote:

> On Wed, Dec 12, 2012 at 7:30 AM, Staffan Tylen <staffan.ty...@gmail.com>
> wrote:
>
> > What's the mechanism to use to invoke a default application from a Rexx
> > routine? Say for example that I've created two files called report.html
> and
> > data.txt and I want report.html to be displayed using the user's default
> > browser and data.txt to be presented using the user's default editor.
> > Thanks.
>
> On Windows, just pass the file name to the outside environment.  If
> the system has a ftype for the file, it will invoke the default
> application:
>
> /* invoker.rex */
>
>   'Makefile.txt'
>
> Running the above brings up notepad with Makefile.txt
>
> --
> Mark Miesfeld
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to