uuid.cmd 256 B

123456789101112131415161718
  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%\..\uuid\bin\uuid" %*
  11. ENDLOCAL
  12. EXIT /b %errorlevel%
  13. :find_dp0
  14. SET dp0=%~dp0
  15. EXIT /b