title: Displaying command in cmd console
body: <p>I'm trying to run a command in cmd using C# and am having some difficulties.  I'd like to be able to write the command to the cmd console so I can see what it's trying to run (I think there's some issue with the quotes or something, so if I could see the actual string in the command line, I'd be able to see exactly what the problem is). My code looks like this:</p>
  
  <pre><code>var processStartInfo  = new ProcessStartInfo("cmd", "/c"+commandString);
  processStartInfo.CreateNoWindow = true;
  Process.Start(processStartInfo);
  </code></pre>
  
  <p>So basically, I just want to see the string commandString written in the console. Any help would be greatly greatly appreciated.</p>
  
  <pre><code>string CommandLineString = @"""C:\Program Files\Microsoft SQL Server\100\Tools\Binn\bcp.exe"" ""SELECT * FROM table where date &gt;= '2009-01-01'"" queryout  ""C:\Data\data.dat"" -S DBSW0323 -d CMS -n -T";
  </code></pre>