Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Shell executing a web browser

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th May 2009 19:41
Hello!

How do I shell execute a web browser (lets say Fire Fox or Internet Explorer) with dbc to open an address passed by db? Is it something like execute file "firefox.exe","www.blabla.com",""?

And what would it be if I want fire fox to open a html file?

TheComet

Peachy, and the Chaos of the Gems

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th May 2009 20:23
I'm geussing to open a html file you could just call Execute file on the html file and it will open in the default browser.


for telling firefox to open it probly the same as a web page because if you type a address of a place on the computer in the address bar it will come up. so it's the same as a address to a website.

New Site! Check it out \/
spt games
16
Years of Service
User Offline
Joined: 14th Apr 2009
Location: United Kingdom
Posted: 15th May 2009 20:44 Edited at: 20th May 2009 15:19
Open website with the users default web browser:




To open with Firefox you would need to be 100% sure that the user has Mozilla Firefox installed. Perhaps you could probe the Windows Registry using Get Registry()?


[EDIT] @Comet
Just re-read this post. Was your question answered? Or were you after launching a website only in a particular browser? In which case this will do it for Internet Explorer:



You should keep in mind that your end user might not have a particular browser installed or installed at default location. So you'll have to do some testing if you want to go this route. Hope that helped you

Login to post a reply

Server time is: 2025-05-17 06:40:20
Your offset time is: 2025-05-17 06:40:20