File: kill-brltty.bat

package info (click to toggle)
brltty 6.9-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 44,828 kB
  • sloc: ansic: 154,246; java: 13,514; sh: 9,934; xml: 5,672; tcl: 2,679; makefile: 2,346; awk: 713; lisp: 366; python: 321; ml: 301
file content (17 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off

setlocal EnableDelayedExpansion
set programDirectory=%~dp0
call "%programDirectory%setvars-brltty"

if exist "%pidFile%" (
   set /P pid= < "%pidFile%"

   if "!pid!" NEQ "" (
      taskkill /PID "!pid!" /F /T
      exit /B %ERRORLEVEL%
   )
)

@echo %packageName% isn't running
exit /B 1