title: Opening pdf files using Process.Start
body: <p>I am trying to open PDF files in Adobe reader using C#'s <code>Process.Start()</code>.</p>
  
  <p>When I provide a path without white spaces it works fine, but paths and pdf files containing white spaces don't open. </p>
  
  <p>This is my code:</p>
  
  <pre><code>Button btn = (Button)sender;
  ProcessStartInfo info = new ProcessStartInfo();
  info.FileName = "AcroRd32";
  string s = btn.Tag.ToString();
  //btn.Tag Contains the full file path 
  info.Arguments = s;
  Process.Start(info); 
  </code></pre>
  
  <p>If it is <code>C:\\Users\\Manish\\Documents\\ms_Essential_.NET_4.5.pdf</code> it works fine but if it is <code>F:\\Tutorials\\C#\\Foundational\\Microsoft Visual C# 2012 Step By Step V413HAV.pdf</code> Adobe Reader gives an error saying <code>there was an error in opening the document file can't be found</code>.</p>
  
  <p>I have read through many questions related to this topic in SO but it won't work. As I can't figure out how to apply <code>@</code> prefix in my string <code>s</code>.</p>
  
  <p>Any ideas how to fix this?</p>