Open File With Associated Application
<p>i want to know how one can open pdf files or text files using their default programs,let say i want to open a pdf file and my default program is adobe reader,i know i can use this code below</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(@"c:/MYSQL.pdf");
        }
</code></pre>

<p>but i want to create a program for example,a program called <code>bb.exe</code>
if i have a directory called drop and inside it, i have sub directories <code>viewer and files</code> but the <code>bb.exe</code> is not in any subdirectory its just in the main directory drop,the viewer directory has <code>adobe reader.exe</code> and the files directory has pdf files.</p>

<p>when i click bb.exe which is inside the drop directory it should open the pdf file in the files folder and it should use the <code>adobe reader.exe</code> in the viewer folder....how can this be done??what materials should i read?? i need ideas on how this can be done or if anyone can explain i will greatly appreciate thanks in advance</p>
