casperjs.cmd 190 Bytes
@IF EXIST "%~dp0\python.exe" (
  "%~dp0\python.exe"  "%~dp0\..\casperjs\bin\casperjs" %*
) ELSE (
  @SETLOCAL
  @SET PATHEXT=%PATHEXT:;.JS;=;%
  python  "%~dp0\..\casperjs\bin\casperjs" %*
)