FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


shellOpen: Opening a file or URL with its default application

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples
View previous topic :: View next topic  
Author Message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3122

PostPosted: 22 Apr 2015 10:06    Post subject: shellOpen: Opening a file or URL with its default application Reply with quote

The predicate shell_api::shellOpen will open a file with its default application:

shell_api::shellOpen(@"C:\users\me\documents\myBook.docx") % Open a word document

It also works for url's

shell_api::shellOpen("http://discuss.visual-prolog.com/") % Open an URL in the users default browser


_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum