I\'m trying to run CasperJS in a portable way that doesn\'t involve setting the path variable in Windows. Currently I have gotten this to partially work by moving the phanto
Got it to work. For the casperjs.bat file, put:
@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%
Move the phantomjs.exe executable to the same directory as this batch file. Should work fine.
try it without call
:
phantomjs "%CASPER_BIN%bootstrap.js" --casper-path="%CASPER_PATH%" --cli %ARGV%