Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Change default program for .html

05 Dec 2011   #1
kenw232

Windows 7 64bit
 
 
Change default program for .html

I need .html files when I click them in explorer to open in Firefox. Win7 64bit.

If I turn on "check to make sure firefox is default browser" it will check and ask and I can set it. Problem solved.

But I need to make firefox open with "-profile whatever" when I double click a .html file in explorer. How can I modify the firefox association/program/whatever to append the profile on the command line. I have no idea where to do this.

Thanks.


My System SpecsSystem Spec
.

05 Dec 2011   #2
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Navigate to Start>Control Panel>Default Programs>Set Associations.

Default Programs - Associate a File Type or Protocol

-assoc.jpg


My System SpecsSystem Spec
05 Dec 2011   #3
kenw232

Windows 7 64bit
 
 

yes, I see that. "Firefox" is there and I can select it. But I need to change Firefox to add a "-profile whatever" so when it runs it runs properly. Right now "Firefox" is just firefox.exe probably. How can I append a switch to it? I see no where I can actually change what "Firefox" is actually executing. I can only select it.


Attached Thumbnails
-eg.jpg  
My System SpecsSystem Spec
.


05 Dec 2011   #4
Ztruker

Windows 8 Core X64
 
 

seavixen32, that won't allow him to specify which user to automatically connect with, no way to add -P profilename.

I don't know of any way to do this? I always get the Profile Manager screen with my default preselected but I still need to click OK for it to continue.

Edit: I wonder if you could select a batch file then have the batch file start Firefox with the -P info and the web site to open?

Edit#2: Nope, that doesn't work, just tried it.
My System SpecsSystem Spec
05 Dec 2011   #5
kenw232

Windows 7 64bit
 
 

I could probably do a batch file thing, but thats ugly. I can't believe I can't just add a switch to the program's command line. Anyone know where exactly in the registry this command line can be found for .html?
My System SpecsSystem Spec
05 Dec 2011   #6
Ztruker

Windows 8 Core X64
 
 

HKEY_CLASSES_ROOT\.html but the info there point to a CSID, not a program name and there is no way to add a parameter.
My System SpecsSystem Spec
05 Dec 2011   #7
kenw232

Windows 7 64bit
 
 

I found where it is.
HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command

But when I try to add -profile c:\users\whatever it doesn't like it. It only wants a path to an exe for some reason. I tried all kinds of various double quote attempts.
My System SpecsSystem Spec
06 Dec 2011   #8
Corazon

Windows 7 Professional SP1 32-bit
 
 

You found the right registry key. On my system it looks like this:
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\command]
@="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -requestPending -osint -url \"%1\""
If you change the line at the end to read
-requestPending -osint -profile \"full path to your profile here\" -url \"%1\""
it should work correctly, once you save this as a .reg file and merge it in.

If you want to make the edit yourself using regedit, simply insert -profile "full path to your profile here" between the -osint and -url parameters.
Note that in this case, the quote marks do not have preceding backslashes.

EDIT: I just realized there are two occurrences of the FirefoxHTML key, one under HKEY_CURRENT_USER\Software\Classes and one under HKEY_CLASSES_ROOT. You can choose to edit both simultaneously, or try just one and see if it's the one that sticks.

My System SpecsSystem Spec
06 Dec 2011   #9
kenw232

Windows 7 64bit
 
 

I tried this, it didn't work. Can you copy/paste your REG_SZ value for HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command ?

I didn't use regedit to import. I'm trying to edit the registry directly.
My System SpecsSystem Spec
06 Dec 2011   #10
Ztruker

Windows 8 Core X64
 
 

Won't this cause a problem if someone else is using the computer? They double click on a html file and your Firefox profile starts.
My System SpecsSystem Spec
Reply

 Change default program for .html




Thread Tools





Similar help and support threads
Thread Forum
Default email program change.
Gooday all. I see a similar situation in another post but thought I should start my own. If I am on a site and for some reason it asks me to email someone, when I click on email, Outlook pops up. I have a Home & Student suite of MS applications and Outlook is only in trial version on this CD, so...
Browsers & Mail
Thumbnail image will not change for program used for .html files
Hello Seven forums, I have been trying to figure out why my thumbnail for html files when using Google Chrome shows a internet explorer icon instead of the chrome icon as it has shown before. I have tried clearing the thumbnail cache and the icon cache but nothing happened. I have attached a image...
Browsers & Mail
change default dvd-program
I wonder how I change the default program for dvd's. Now, when I double-click the dvd in "Computer", Windows Media Player is started. I have powerdvd installed. In file associations it shows that .vob is linked to powerdvd. Is there a way so that when I doubleklick the dvd I want to play powerdvd...
Music, Pictures & Video
Open With - Change Default Program
How to Change the Default Program a File Type Opens With in Windows 7 A default program is the program that Windows 7 uses when you open a particular type of file extension. This will show you how to change a file type to open with a different default program for just this one time or always...
Tutorials
Change default program through script
Hi guys, I'm in a new IT job for a computer lab and I'm picking up skills for maintaining it as I go along. I need to change the default program for a filetype on all machines in the lab. If I just log on as admin and change it under my account, the change doesn't persist for the non-admin...
General Discussion
Want to change Default graphic program.
I want to use an old program that I have been using, to open all the graphics and pictures I want to see. Somehow I reset to QT. BUT that program I like so much(MGI) does not show in DEFAULT PROGRAMS nor is there a BROWSE button there. How can I get it reset back to MGI?? Thank you for any help!!!...
Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App