You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 regels
280 B

3 jaren geleden
  1. @ECHO off
  2. SETLOCAL
  3. CALL :find_dp0
  4. IF EXIST "%dp0%\node.exe" (
  5. SET "_prog=%dp0%\node.exe"
  6. ) ELSE (
  7. SET "_prog=node"
  8. SET PATHEXT=%PATHEXT:;.JS;=;%
  9. )
  10. "%_prog%" "%dp0%\..\dev-ip\lib\dev-ip.js" %*
  11. ENDLOCAL
  12. EXIT /b %errorlevel%
  13. :find_dp0
  14. SET dp0=%~dp0
  15. EXIT /b