File: install_giveio.bat

package info (click to toggle)
avrdude 6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,692 kB
  • ctags: 3,161
  • sloc: ansic: 31,455; sh: 4,418; yacc: 1,301; lex: 246; makefile: 241
file content (34 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@set DIRVERNAME=giveio
@set DIRVERFILE=%DIRVERNAME%.sys

@echo Copying the driver to the windows directory
@echo target file: %WINDIR%\%DIRVERFILE%
@copy %DIRVERFILE% %WINDIR%\%DIRVERFILE%

@echo Remove a running service if needed...
@loaddrv stop %DIRVERNAME% >NUL
@if errorlevel 2 goto install

@loaddrv remove %DIRVERNAME% >NUL
@if errorlevel 1 goto install

:install
@echo Installing Windows NT/2k/XP driver: %DIRVERNAME%

@loaddrv install %DIRVERNAME% %WINDIR%\%DIRVERFILE%
@if errorlevel 3 goto error

@loaddrv start %DIRVERNAME%
@if errorlevel 1 goto error

@loaddrv starttype %DIRVERNAME% auto
@if errorlevel 1 goto error

@echo Success
@goto exit

:error
@echo ERROR: Installation of %DIRVERNAME% failed

:exit