title: How to download an .EXE file from a website?
body: <p>I am writing an application where i required to download an exe file from a website. 
  I am using Visual studio express 2008.</p>
  
  <p>I am using the following code.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      WebClient webClient = new WebClient();
      webClient.DownloadFileAsync(new   Uri("http://example.com/images/def.exe"), @"d:\ac\def.exe");           
  }
  </code></pre>
  
  <p>The def.exe get downloaded in Ac folder of D drive but is of 0 byte.</p>
  
  <p>I am not able to understand that why it is happening.</p>
  
  <p>Please help me.</p>