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

Windows 7 64bit
Change default program for .html

I need .html files when I click them in explorer to open in Firefox. Windows 7 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.


My System SpecsSystem Spec

05 Dec 2011   #2

Windows 7 Ultimate SP1 64-Bit

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

Default Programs - Associate a File Type or Protocol

Change default program for .html-assoc.jpg

My System SpecsSystem Spec
05 Dec 2011   #3

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
Change default program for .html-eg.jpg  
My System SpecsSystem Spec

05 Dec 2011   #4

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

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

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

Windows 7 64bit

I found where it is.

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

Windows 7 Professional SP1 32-bit

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

@="\"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

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

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

 Change default program for .html

Thread Tools

Similar help and support threads for2: Change default program for .html
Thread Forum
Solved Thumbnail image will not change for program used for .html files Browsers & Mail
change default dvd-program Music, Pictures & Video
Open With - Change Default Program Tutorials
Change Program Files default location? General Discussion
Change default program through script General Discussion
Want to change Default graphic program. Software
Change default email program Browsers & Mail

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 09:28 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33