reg.bat 425 B

123456789101112131415161718
  1. @echo off
  2. rem Check that the user properly called this script.
  3. rem 设置APPDIR环境变量为当前服务器程序运行目录
  4. call :compute_pwd
  5. set APPDIR=%~dp0%
  6. echo 设置工作目录成功
  7. echo "开始注册 screen-capture-recorder插件"
  8. regsvr32 %APPDIR%screen-capture-recorder.dll
  9. regsvr32 %APPDIR%audio_sniffer.dll
  10. echo "注册完成"
  11. :compute_pwd
  12. @FOR /F "tokens=*" %%i in ('cd') DO @set PWD=%%~fsi
  13. @goto :EOF