Share Tips, Code Samples, etc. with the Visual Prolog community.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1419
Joined: 28 Feb 2000 0:01

shellOpen: Opening a file or URL with its default application

Unread post 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("http://discuss.visual-prolog.com/") % Open an URL in the users default browser
Regards Thomas Linder Puls
PDC
User avatar
Gukalov
VIP Member
Posts: 65
Joined: 5 Oct 2011 15:16

Re: shellOpen: Opening a file or URL with its default application

Unread post by Gukalov »

Hi.

shell_api::shellOpen("*.wma") - it opens default media player with the given file. O'k.
Is it possible to open default media player with files list?!
Post Reply