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