forked from MyRobotLab/InMoov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
START_INMOOV.bat
65 lines (65 loc) · 3.13 KB
/
START_INMOOV.bat
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
REG ADD HKCU\Console /v CodePage /t REG_DWORD /d 0xfde9 /f
REG ADD HKCU\Console /v FaceName /t REG_SZ /d "Lucida Console" /f
@chcp 65001>nul
@echo off
echo ------------------------------------------------------
echo INMOOV BATCH LAUNCHER 0.2
echo ------------------------------------------------------
echo .
echo KILL JAVA to clean reborn
taskkill.exe /F /IM java.exe
taskkill.exe /F /IM javaW.exe
echo ------------------------------------------------------
echo LOG CLEAN UP to free space disk and send clean noworky
echo ------------------------------------------------------
del myrobotlab.log > NUL
echo .
echo ------------------------------------------------------
echo UPDATE MRL INSTALLATION
echo ------------------------------------------------------
timeout 1 > NUL
echo .
if exist %cd%\InMoov\system\updated RMDIR /S /Q .myrobotlab
if exist %cd%\InMoov\system\updated del %cd%\InMoov\system\updated
move /y %cd%\myrobotlab-*.jar %cd%\myrobotlab.jar > NUL
if exist %cd%\mrlNeedReinstall RMDIR /S /Q haarcascades
if exist %cd%\mrlNeedReinstall RMDIR /S /Q hogcascades
if exist %cd%\mrlNeedReinstall RMDIR /S /Q lbpcascades
if exist %cd%\mrlNeedReinstall RMDIR /S /Q libraries
if exist %cd%\mrlNeedReinstall RMDIR /S /Q pythonModules
if exist %cd%\mrlNeedReinstall RMDIR /S /Q resource
if exist %cd%\mrlNeedReinstall RMDIR /S /Q tessdata
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\de\aimlif
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\es\aimlif
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\en\aimlif
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\fr\aimlif
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\hi\aimlif
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\nl\aimlif
if exist %cd%\mrlNeedReinstall RMDIR /S /Q InMoov\chatbot\bots\ru\aimlif
if exist %cd%\mrlNeedReinstall del ivychain.xml
if exist %cd%\mrlNeedReinstall del myrobotlab.log
if exist %cd%\mrlNeedReinstall del repo.json
if exist %cd%\mrlNeedReinstall del %cd%\.myrobotlab\serviceData.json
if exist %cd%\mrlNeedReinstall del mrlNeedReinstall
COLOR 2F
cls
echo ------------------------------------------------------
echo !!! MRL UPDATER !!!
echo !!! PLEASE WAIT !!!
echo !!! IT CAN TAKE LONG TIME !!!
echo !!! DO NOT CLOSE !!!
echo ------------------------------------------------------
timeout 3 > NUL
java -Dfile.encoding=UTF-8 -jar myrobotlab.jar -jvmargs="-Dfile.encoding=UTF-8" -install RasPi InMoov VoiceRss WikiDataFetcher Polly ProgramAB AzureTranslator LocalSpeech IndianTts
COLOR 0F
cls
echo ------------------------------------------------------
echo START MRL AND INMOOV
echo ------------------------------------------------------
if not exist %cd%\Inmoov\InMoov.py (
COLOR 4F
echo ERROR : %cd%\InMoov\InMoov.py is not available
echo CHECK ABOUT SPACES INSIDE FOLDERS NAME or SPECIAL CHARACTERS
echo "c:\mrl" is a great place to start
timeout 10 > NUL
) else (java -Dfile.encoding=UTF-8 -jar myrobotlab.jar -jvmargs="-Dfile.encoding=UTF-8" -invoke python execFile %cd%/InMoov/InMoov.py -service python Python)