Associating Files to a particular exe..
-
hi all, how can i associate a particular file to an exe... i.e if i doubleclick on a file with a particular extension ia want that file to be opened in a particular exe.. thanks in advance...
Hi, There are several ways to associate a file with a particular program. In Windows XP the easiest way is to right click on the file and select Open With -> Choose Program. Select the exe file that you want to open the file with and then click OK (don't forget to select the "Always use the selected program to open this kind of file" checkbox). The operating system associates the file extension with your program and the next time you double click on a file it opens it with your program. Hope it helps.
Do your best to be the best
-
hi all, how can i associate a particular file to an exe... i.e if i doubleclick on a file with a particular extension ia want that file to be opened in a particular exe.. thanks in advance...
Hello This depends on wither the Application is yours or not. If it is your application do this: 1- In your setup: a- Right Click on your setup project's name => View => File Types b- Right Click on "File Types on Target Machine" => Add File Type 2- If you want to associate the filetype with another application that's not yours ignore this step. In your application, use
Enironment.GetCommandLineArgs()
to get the filename If you want to make an application like a "Filetype associations editor". Edit the registry with it. In the registry, any file extension has a key to associate it with different applications that appear in the Open with... list if there are more than one application associated, and make one of them as default. For example, search your registry using RegEdit for "jpg". It will return all keys including associations with jpg files. Understand the structure and make your application editing all keys with the changes of the extension name. Shouldn't be too hard.Regards:rose:
-
hi all, how can i associate a particular file to an exe... i.e if i doubleclick on a file with a particular extension ia want that file to be opened in a particular exe.. thanks in advance...