If I understand you correctly: you want to have files with a given extension
open in different applications when they're clicked in Windows Explorer?
The only way to do that is to write an application that is associated with
an extension and open another application based on some non-extension
criteria.
That's what Visual Studio does with *.*proj files. A third application you
don't ever see checks the contents of the file then runs either Visual Studio
2003 or Visual Studio 2005...

Signature
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
> The group and search engines revealed many hints on how to use the
> 'Open With...' dialog, for example at:
[quoted text clipped - 16 lines]
>
> Any tips would be appreciated.
Jeroen - 29 Jun 2007 16:16 GMT
On 29 jun, 16:40, Peter Ritchie [C# MVP] <PRS...@newsgroups.nospam>
wrote:
> If I understand you correctly: you want to have files with a given extension
> open in different applications when they're clicked in Windows Explorer?
Sorry, I probably explained the problem inadequately. In pseudocode,
the following is what I'm looking for:
/******************************/
class Example
{
private static object SomeApplication = null;
private static string FilePath = "C:\SomeJustCreatedFile.html";
private void OpenMyFile ()
{
if (SomeApplication == null)
SomeApplication = this.SelectAnApplicationThroughOPENWITH ();
System.Diagnostics.Process process = new
System.Diagnostics.Process();
process.Application = SomeApplication;
process.File = FilePath;
process.Start();
}
private object this.SelectAnApplicationThroughOPENWITH()
{
// Do something
}
}
/*****************************************************/