-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.bat
More file actions
26 lines (21 loc) · 813 Bytes
/
install.bat
File metadata and controls
26 lines (21 loc) · 813 Bytes
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
@ECHO off
REM Install script for DAQFactory serial drivers
REM Must be run as administrator due to permissions on destination folder
REM
REM Copies protocol files (*.ddp) from subfolders into C:\DAQFactory
REM Be manual and explicit instead of automatic and efficient
REM Give user option to abort
ECHO Preparing to install DAQFactory serial driver files...
CHOICE /M "Any currently installed drivers will overwritten. Continue?"
IF %ERRORLEVEL% EQU 2 EXIT
REM Switch back to file directory while running as administrator
PUSHD %~dp0
ECHO.
REM Copy individual protocol files into destination (overwrite if exists)
XCOPY "LGR_N2O_CO\pLGR_N2O_CO.ddp" "C:\DAQFactory\" /Y
XCOPY "LGR_UGGA\pLGR_UGGA.ddp" "C:\DAQFactory\" /Y
REM Brief delay for user to review
ECHO.
ECHO.
ECHO Finished installing.
TIMEOUT 15