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

06 Dec 2011   #11
Corazon

Windows 7 Professional SP1 32-bit
 
 

Please elaborate on what you mean by "it didn't work." Exactly how did you proceed?


The REG_SZ string as it appears in my Registry reads as follows (I did a direct copy/paste from regedit):

"C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -url "%1"

You should change this as follows:

"C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -profile "full path to your profile here" -url "%1"

for example, if your profile is in C:\Users\Me\Some\Path, the string would read:

"C:\Program Files\Mozilla Firefox\firefox.exe" -requestPending -osint -profile "C:\Users\Me\Some\Path" -url "%1"





My System SpecsSystem Spec
.
06 Dec 2011   #12
kenw232

Windows 7 64bit
 
 

I've attached the errors I get when I click a .url file. I was actually working with FirefoxURL. THe path to the profile is fine, I use it in shortcuts now.


Attached Images
 
My System SpecsSystem Spec
07 Dec 2011   #13
Corazon

Windows 7 Professional SP1 32-bit
 
 

Could you show me the exact string you put into your Registry for the FirefoxHTML-etc. key?
My System SpecsSystem Spec
.

07 Dec 2011   #14
kenw232

Windows 7 64bit
 
 

"C:\Program Files (x86)\Mozilla Firefox 7\firefox.exe" -requestPending -osint -profile "C:\Users\MyName\AppData\Roaming\Mozilla\Firefox\Profiles\ya51kf7t.default" -url "%1"
My System SpecsSystem Spec
08 Dec 2011   #15
Corazon

Windows 7 Professional SP1 32-bit
 
 

OK, the registry key is perfect. That's not the problem. Somehow Firefox just won't load your profile using this method; I don't know why - perhaps you can ask on Mozilla's forums and get an answer there.

There is another option according to this page:
Quote:
Command - Result - Example

profile "<path>" - Starts with profile located at the given path - firefox.exe -profile "E:\myprofile"

P "<profile name>"
- Starts with a given profile name (case sensitive) - firefox.exe -P "Joel User"
Try using the -P option instead of -profile. Does that work?

I wonder what the -requestPending and -osint switches do, I can't find any info about them. Perhaps they conflict somehow.
My System SpecsSystem Spec
08 Dec 2011   #16
kenw232

Windows 7 64bit
 
 

I gave up and made the files open in IE instead. Thanks for your help anyway.
My System SpecsSystem Spec
22 May 2014   #17
JackG5

Windows 7 Ultimate x64
 
 
Solved

I realize this is a ridiculously old thread, but I did a decent amount of searching on two different occasions and this is the only place I could find that mentioned the specific issue I was dealing with.

Now that I finally determined a solution, I figured I would post it here for anyone else who finds this thread:

All I had to do was change the order of the profiles as listed in the profiles.ini...

So you navigate to:

C:\Users\MyName\AppData\Roaming\Mozilla\Firefox


And there should be a "profiles.ini"

Just open that in Notepad and swap the info of the current profile that opens HTML files with the info of the profile that you want.

Code:
[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=Profiles/lkweHj43.default
Default=1

[Profile1]
Name=MyCustomProfile
IsRelative=1
Path=Profiles/kjwudkfm.MyCustomProfile
With this configuration, the default profile handles HTML files.
Just swap the relevant info and put the profile you want under "[Profile0]" and above "Default=1"...

Code:
[General]
StartWithLastProfile=1

[Profile0]
Name=MyCustomProfile
IsRelative=1
Path=Profiles/kjwudkfm.MyCustomProfile
Default=1

[Profile1]
Name=default
IsRelative=1
Path=Profiles/lkweHj43.default
Now "MyCustomProfile" will open HTML files.
My System SpecsSystem Spec
Reply

 Change default program for .html




Thread Tools




Similar help and support threads
Thread Forum
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
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
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 19:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App