Process.Start returns null
<p>i am writing a program that launches a random file in a directory. the file can be of any time, but mostly video or image files.
each time i launch a file i want to close the previous opened one.
the code is:</p>

<pre><code>    string FolderSelected = "";
    string FileName = "";
    Process proc;

    List&lt;string&gt; FilesDisplayed = new List&lt;string&gt;();

    public Form1()
    {
        InitializeComponent();
    }

    private void button2_Click(object sender, EventArgs e)
    {
        if (FolderSelected == string.Empty)
            FolderSelected = Properties.Settings.Default.FilesDefaultFolder;

        if (proc != null)
        {
            proc.CloseMainWindow();
            proc.Close();
        }
        FileName = FetchRandomFile();
        proc = Process.Start(FileName);


    }
</code></pre>

<p>the problem is, that i keep getting proc = null (the file is launched properly) and i cannot fetch the previously opened process in order to close it. I know that .NET reuses processes and thats why it returns Null but i need to override this behavior.
please help,
Guy.</p>
