-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.cmd
More file actions
34 lines (28 loc) · 789 Bytes
/
install.cmd
File metadata and controls
34 lines (28 loc) · 789 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
31
32
33
34
@echo off
set plugin=messageWindow
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%" (
echo ERROR: "%abaqus_plugins%" does not exist.
pause
exit 1
)
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/plugin-messageWindow
)
pause