-
Notifications
You must be signed in to change notification settings - Fork 0
/
Import.cmd
46 lines (30 loc) · 1.04 KB
/
Import.cmd
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
@echo off
rem Author KMS - Martin Dubois, ing.
rem Product OpenNet_Public
rem File Import.cmd
rem Usage Import.cmd
echo Executing Import.cmd ...
rem ===== Configuration =====================================================
set EXPORT_FOLDER=K:\Export
rem ===== Dependencies ======================================================
set OPEN_NET="%EXPORT_FOLDER%\OpenNet\0.0.11_KI_Windows"
rem ===== Constants =========================================================
set DST_FOLDER="%CD%\Import"
rem ===== Verification ======================================================
if not exist %OPEN_NET% (
echo FATAL ERROR %OPEN_NET% does not exist
pause
exit /B 1
)
rem ===== Execution ========================================================
if not exist %DST_FOLDER% mkdir %DST_FOLDER%
pushd %OPEN_NET%
call Import.cmd %DST_FOLDER%
popd
if ERRORLEVEL 1 (
echo ERROR call Import.cmd %DST_FOLDER% failed - %ERRORLEVEL%
pause
exit /B 2
)
rem ===== End ==============================================================
echo OK