title: How can I open an .EXE file from an ASP.NET site?
body: <p>Can I open executable files on a client machine from an ASP.NET site hosted on IIS?</p>
  
  <p>I have tried using the following code in ASP.NET:</p>
  
  <pre><code>Process notePad = new Process();
  
  notePad.StartInfo.FileName = "notepad.exe";
  notePad.StartInfo.Arguments = @"E:\abc.txt";
  
  notePad.StartInfo.CreateNoWindow = false;
  notePad.StartInfo.UseShellExecute = false;
  notePad.StartInfo.RedirectStandardOutput = false;
  
  notePad.Start();
  </code></pre>
  
  <p>and also in Javascript with the following code:</p>
  
  <pre><code>function Launch() {
      var w = new ActiveXObject("WScript.Shell");
      w.run('notepad.exe');
      return true;
  }
  </code></pre>
  
  <p>But both snippets will only open the file when the site is not hosted in IIS.</p>
  
  <p>Any help is greatly appreciated. Thank you in advance.</p>