Console application not doing anything
<p>basically I would like to write an application to perform this in command prompt:</p>

<p><code>sslist -H -R -h s234.ds.net /mobile &gt; listofsnapshot.txt</code></p>

<p>then this is my code when i create a c# console application:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Search
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo.FileName = "sslist.exe";
            p.StartInfo.Arguments = "-H -R -h s234.ds.net /mobile";
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.RedirectStandardError = true;
            p.Start();

            string procOutput = p.StandardOutput.ReadToEnd();
            string procError = p.StandardError.ReadToEnd();

            TextWriter outputlog = new StreamWriter("C:\\Work\\listofsnapshot.txt");
            outputlog.Write(procOutput);
            outputlog.Close();

        }
    }
}
</code></pre>

<p>why when i execute my console script, it just hangs there and not do anything?</p>
