title: use latest casperjs as portable version via batch
body: <p><em>disclaimer</em>: <em>All the answers I found at the thread over <a href="https://stackoverflow.com/questions/19510623/using-casperjs-as-a-portable-installation">here</a> are not working for the casperjs and phantomjs-versions are newer (at least I think that's the cause).</em></p>
  
  <p>So... I've created a bunch of tests using the latest version of casperjs from its <a href="https://github.com/n1k0/casperjs" rel="nofollow noreferrer">master-branch</a> - NOT(!) the one aquired via download-link, for I needed to use <a href="http://phantomjs.org/download.html" rel="nofollow noreferrer">phantomjs</a> 2.0 due to some bugs with the 1.9.8 version preventing me to do my tests. I'm on a win7 64bit environment.</p>
  
  <p>It all worked out very well, but now I'm trying to automate the execution of the tests via a batch-file as described in the thread I mentioned in the disclaimer - so that I don't have the PATH-variable. </p>
  
  <p>I tried to use the following script alongside with putting the phantomjs-file together with my casperjs-file in the rootdirectory:</p>
  
  <pre><code>@ECHO OFF
  set CASPER_PATH=%~dp0
  set CASPER_BIN=%CASPER_PATH%\bin\
  set ARGV=%*
  call phantomjs "%CASPER_BIN%bootstrap.js" --casper-path="%CASPER_PATH%" --cli %ARGV%
  </code></pre>
  
  <p>This is my filestructure so far:</p>
  
  <p><img src="https://i.stack.imgur.com/IyQJV.png" alt="enter image description here"></p>
  
  <p>While starting the batch, I always face the following error: <code>CasperError: Cannot find package.json at C:\package.json</code></p>
  
  <p>And I have no clue how to change this anymore. Hope anyone could help me out here!</p>