Go Back   PCMech Forums > Windows Support > Windows Tips, Tricks, and Tweaks

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-19-2005, 08:59 PM   #1
Member (3 bit)
 
Join Date: Dec 2004
Location: Copenhagen,Denmark
Posts: 7
Firefox Tip "Add Firefox to Windows right-click context menu"

Hello.

Add Firefox to Windows right-click context menu,.....very useful when having IE as Default Browser but you want to load the url shortCut direct in FF.
And handy when having url´s in folders or other places than bookmarkFolder.


OK, opening urls are a function of the OpenURL method defined in shdocvw.dll.
This of course opens up in your default browser, and you need to find passing arguments to the function.
Here is a script to read the url and open it in firefox.


Copy To NotePad..save as url.vbs in FF dir (REMEMBER PROPER PATH FOR FIREFOX !)
========================================================
Dim objArgs, WshShell, fso, f, URL, buf

Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(WScript.Arguments(0), 1, False)

Do While f.AtEndOfStream <> True
buf = f.ReadLine
if StrComp(left(buf,4), "URL=", 1) = 0 then
URL = right(buf,len(buf)-4)
end if
Loop

WshShell.Run """c:\program files\mozilla firefox\firefox.exe"" -url " & URL

f.Close

========================================================
Then set "(URL) Internet Shortcut" as follows (REMEMBER PROPER PATH FOR FIREFOX !)

Action: Open with &Firefox
Application: "C:\WINDOWS\system32\wscript.exe" "C:\Program Files\Mozilla Firefox\url.vbs" "%1"
==========================================================================
SET "(URL) Internet Shortcut" :
HowTo:Add items to context menus in explorer:
"Tools->Folder Options->File Types" look for "(URL) Internet Shortcut"
Once selected click on advanced (at the bottom field) then add a "New..." "Action": Open with &Firefox
and "Application" will be including quotes: "C:\WINDOWS\system32\wscript.exe" "C:\Program Files\Mozilla Firefox\url.vbs" "%1"


You now have an Right Click "Open With Firefox"
If you get an Error...then you must check all path´s again
Have Fun !

I found this on the mozilla forum..and YES i have tested it:

http://forums.mozillazine.org/viewtopic.php?t=203556
BY : mcm_ham

Last edited by fork_boy; 01-19-2005 at 09:02 PM.
fork_boy is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:17 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2