Hi,
How can I find the default software on a computer? For example default media player, web browser, etc...
Thanks
Printable View
Hi,
How can I find the default software on a computer? For example default media player, web browser, etc...
Thanks
Do you mean default extensions??? (IE .doc opens M$Word?)
And then do you mean Windows?
If yes to both above, go to the registry and look for a key called HKEY_CLASSES_ROOT.....In here there's a key for every extension registered...
Here's a way to find the app that runs it (using WinRAR as an example)
Here the key is called .RAR (as it opens rar files)....it has a default value that's called "Winrar". Now this means there's another key called "Winrar". Find that and under it you'll find a key called "shell" and under that is an entry for each command you get when you right click the file ("open","print"...whatever)....in each of these is a "command" key with a default with the App name ...IE "C:\Program Files\WinRAR\WinRAR.exe" "%1" therefore this is the same as typing "C:\Program Files\WinRAR\WinRAR.exe myfile.rar" in the run box....
Bit round and about....but that's one way
or you can just go to start > settings > folder option
select the file type tab, select a file type and it should tell you what the default opener is.
LOL....I assmued he wanted to do it with code......maybe he didnt :)Quote:
Originally posted by Commander
or you can just go to start > settings > folder option
select the file type tab, select a file type and it should tell you what the default opener is.
Ah well!
what I am actually trying to do is change the web browser...and I am still trying.
What browser
For opera
File->Preferences...->Defult Browser
almost all browsers have a button called "Make Default Browser" somewhere in the preferences\options, look around, you'll find it!
Actually I am making my own browser. And I am trying to make it so that the user can set it to by the default.
if the program is suited for Windows then listen to Fordy's post cuz <windows.h> is what you'll need to play around with the registery since that's all I know of.