title: Running Processes from Visual Studio
body: <p>The casper.js code looks like this.</p>
  
  <pre><code>var casper = require('casper').create();
  var fs = require('fs');
  var path = 'test.txt';
  
  fs.touch(path);
  
  casper.start('http://www.google.com', function() {
      fs.write(path, this.getHTML(), 'w');
  });
  
  casper.run();
  </code></pre>
  
  <p>I'm calling the process like this. </p>
  
  <pre><code>System.Diagnostics.Process.Start(@"C:\CasperJS\casperjs-casperjs-b4f7669\bin\casperjs", @"C:\casper\casper.js");
  </code></pre>
  
  <p>It works when I run </p>
  
  <pre><code>&gt;casperjs casper.js 
  </code></pre>
  
  <p>from the command line but not when I try to run it from visual studio. Any ideas why?</p>