Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-10-2005, 08:46 AM   #21 (permalink)
 
Newb Techie

Join Date: Oct 2005

Posts: 27

joseza82

Default

then u'll need to write a procedure to determine the default web browser available on the pc and determine it's location on your hard disk.
put this location in a string and use the shell function
joseza82 is offline  
Old 10-10-2005, 08:47 AM   #22 (permalink)
 
Newb Techie

Join Date: Oct 2005

Posts: 27

joseza82

Default

or u can find another method ,if u do tell me.
joseza82 is offline  
Old 10-10-2005, 09:04 AM   #23 (permalink)
 
Junior Techie

Join Date: Oct 2005

Posts: 61

Sainath

Default

I just tried it.
To open it in Mozilla, substitute the path of IE with that of Mozilla.
Heres the code i used.
Shell "C:\Program Files\Mozilla Firefox\Firefox http://www.google.com"
Sainath is offline  
Old 10-10-2005, 09:17 AM   #24 (permalink)
 
Junior Techie

Join Date: Oct 2005

Posts: 61

Sainath

Default

Do the same for any other browser, by the way.
Sainath is offline  
Old 10-10-2005, 01:20 PM   #25 (permalink)
 
Newb Techie

Join Date: Oct 2005

Posts: 27

joseza82

Default

yeah but it he wants to use his project on any pc he needs to check the default browser on this pc,so he needs to make a procedure to check the current browser ,cauz it's not neat to change the code for each type of browser.
joseza82 is offline  
Old 10-10-2005, 06:08 PM   #26 (permalink)
 
Newb Techie

Join Date: Sep 2005

Posts: 22

Ben.H

Default

www.computerperformance.co.uk or maybe .com
is a good website that i learned some handy vb things from when i first started out.
Ben.H is offline  
Old 10-10-2005, 09:47 PM   #27 (permalink)
 
Wizard Techie

Join Date: Jun 2005

Posts: 3,346

Tyler1989

Default

Quote:
Originally posted by apokalipse
what if they don't use IE?
But it is more smart to use IE as not everyone uses Mozilla or FF. You can be sure if they use windows which they must for .NET they will use IE.
__________________
<form action=\"http://www.srsyo.org/tfsearch.php\" method=\"get\">
<input type=\"text\" name=\"search\"> <input type=\"submit\" name=\"submit\" value=\"Search TF before you post!\"></form>
Vista Discussion | 64 Bit Discussion |Microsoft Homepage | Yo Linux | Paul Thurrott | Fire Fox | Thunder Bird | Image Shack | Photo Bucket | Put File | Anti-Spyware | MS Anti-Spyware | Trillian | Anti-Virus | On Line Virus Scan
Tyler1989 is offline  
Old 10-11-2005, 11:31 AM   #28 (permalink)
 
Junior Techie

Join Date: Oct 2005

Posts: 61

Sainath

Default

True.
Anyway, i have no idea about the default thingy... :S
Sainath is offline  
Old 10-12-2005, 01:04 PM   #29 (permalink)
 
Junior Techie

Join Date: Oct 2005

Posts: 61

Sainath

Default

I looked into some books, but they dont give you any coding to find the computer's default browser.
Sainath is offline  
Old 10-12-2005, 01:37 PM   #30 (permalink)
 
Newb Techie

Join Date: Oct 2005

Posts: 27

joseza82

Default

they don't man!!

ok here's a tip the browsers installed on your pc,can be found in the registry of ur pc ,use run->regedit->HKEY_CLASSES_ROOT \ http \ shell \ open \ command

u'll c if ur using firefox as default browser: c:\......\firefox.exe....
for IE you'll get something else

so try working on this if ur still insiting on using the shell command

but i'm sure there's another way to do the trick and much easier guys, but i have no time to wrok on it right now.

so use the tip that i just gave to determine what's the default browser.
joseza82 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On