PDA

View Full Version : How can I find the default software on a computer?



Unregistered
08-15-2002, 04:28 PM
Hi,

How can I find the default software on a computer? For example default media player, web browser, etc...


Thanks

Fordy
08-15-2002, 04:53 PM
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

Commander
08-15-2002, 05:14 PM
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.

Fordy
08-15-2002, 05:21 PM
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.

LOL....I assmued he wanted to do it with code......maybe he didnt :)

Ah well!

Unregistered
08-15-2002, 05:38 PM
what I am actually trying to do is change the web browser...and I am still trying.

Sentaku senshi
08-15-2002, 05:48 PM
What browser

For opera
File->Preferences...->Defult Browser

Commander
08-15-2002, 08:43 PM
almost all browsers have a button called "Make Default Browser" somewhere in the preferences\options, look around, you'll find it!

Unregistered
08-15-2002, 09:09 PM
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.

toaster
08-15-2002, 11:55 PM
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.