pinyin.cmd 305 B

1234567891011121314151617
  1. @ECHO off
  2. GOTO start
  3. :find_dp0
  4. SET dp0=%~dp0
  5. EXIT /b
  6. :start
  7. SETLOCAL
  8. CALL :find_dp0
  9. IF EXIST "%dp0%\node.exe" (
  10. SET "_prog=%dp0%\node.exe"
  11. ) ELSE (
  12. SET "_prog=node"
  13. SET PATHEXT=%PATHEXT:;.JS;=;%
  14. )
  15. endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pinyin\bin\pinyin" %*