-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.bat
More file actions
47 lines (41 loc) · 1.12 KB
/
Copy pathinstall.bat
File metadata and controls
47 lines (41 loc) · 1.12 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
setlocal enabledelayedexpansion
set DEST=C:\VEC
echo Installing VEC to %DEST%...
if not exist "%DEST%" mkdir "%DEST%"
copy /Y "%~dp0vec.exe" "%DEST%\vec.exe" >nul
copy /Y "%~dp0vec-cpu.exe" "%DEST%\vec-cpu.exe" >nul
copy /Y "%~dp0test.exe" "%DEST%\test.exe" >nul
echo Done.
echo.
:: add to PATH if not already there
echo %PATH%|find /I "%DEST%" >nul 2>&1
if errorlevel 1 (
echo Adding %DEST% to system PATH...
setx PATH "%DEST%;%PATH%" /M >nul 2>&1
if !errorlevel! equ 0 (
echo Added. Restart your terminal or run: PATH %DEST%;%%PATH%%
) else (
echo Could not add to PATH ^(run as Admin?^). Add manually:
echo setx PATH "%DEST%;%%PATH%%" /M
)
echo.
) else (
echo %DEST% already in PATH.
echo.
)
echo === VEC installed ===
echo.
echo Start a named database from any folder:
echo vec name 1024
echo.
echo Start the CPU-only build:
echo vec-cpu name 1024
echo.
echo Run the integration test:
echo test
echo.
echo Stopped instance auto-saves. All files land in the current directory.
echo.
echo Created by PsyChip ^(root@psychip.net^)
pause