-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.cmd
More file actions
30 lines (24 loc) · 722 Bytes
/
install.cmd
File metadata and controls
30 lines (24 loc) · 722 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
27
28
29
30
@echo off
set plugin=connectorGenerator
if defined HOME (
set abaqus_plugins=%HOME%\abaqus_plugins
) else (
set abaqus_plugins=%HOMEDRIVE%%HOMEPATH%\abaqus_plugins
)
echo This script copies the Abaqus CAE plugin "%plugin%" into "%abaqus_plugins%"
if not exist "%abaqus_plugins%" mkdir "%abaqus_plugins%"
set destination=%abaqus_plugins%\%plugin%\
if "%~dp0"=="%destination%" (
echo ERROR: Already installed.
pause
exit 1
)
if not exist "%destination%" mkdir "%destination%"
copy /Y "%~dp0\*.*" "%destination%"
if ERRORLEVEL 0 (
echo Success! Restart Abaqus CAE and check Plugin-ins menu.
) else (
echo Something went wrong.
echo Create an issue on https://github.com/costerwi
)
pause