Page 1 of 1

shellOpen: Opening a file or URL with its default application

Posted: 22 Apr 2015 10:06
by Thomas Linder Puls
The predicate shell_api::shellOpen will open a file with its default application:

Code: Select all

shell_api::shellOpen(@"C:\users\me\documents\myBook.docx") % Open a word document
It also works for url's

Code: Select all

shell_api::shellOpen("") % Open an URL in the users default browser