|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|