-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterface_fr.bat
78 lines (74 loc) · 2.64 KB
/
Interface_fr.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
66
67
68
69
70
71
72
73
74
75
76
77
78
@ECHO OFF
:TOP_INIT
set "prog_dir=%~dp0"
set "bat_name=%~n0"
set "ofile_name=%bat_name%_options.cmd"
Title NSC_Builder v%program_version% -- Profile: %ofile_name% -- by JulesOnTheRoad
set "list_folder=%prog_dir%lists"
::-----------------------------------------------------
::EDIT THIS VARIABLE TO LINK OTHER OPTION FILE
::-----------------------------------------------------
set "op_file=%~dp0zconfig\%ofile_name%"
::-----------------------------------------------------
::COPY OPTIONS FROM OPTION FILE
::-----------------------------------------------------
setlocal
if exist "%op_file%" call "%op_file%"
endlocal & (
REM environment
set "pycommand=%pycommand%"
set "start_minimized=%start_minimized%"
set "browserpath=%browserpath%"
set "videoplayback=%videoplayback%"
set "height=%height%"
set "width=%width%"
set "port=%port%"
set "host=%host%"
set "noconsole=%noconsole%"
set "pycommandw=%pycommandw%"
REM PROGRAMS
set "squirrel=%squirrel%"
set "REDsquirrel=%REDsquirrel%"
REM FILES
set "dec_keys=%dec_keys%"
)
::-----------------------------------------------------
::SET ABSOLUTE ROUTES
::-----------------------------------------------------
::Program full route
if exist "%~dp0%squirrel%" set "squirrel=%~dp0%squirrel%"
::Important files full route
if exist "%~dp0%dec_keys%" set "dec_keys=%~dp0%dec_keys%"
::Folder output
CD /d "%~dp0"
if not exist "%dec_keys%" ( goto missing_things )
if "%start_minimized%" EQU "yes" ( goto minimize )
goto start
:minimize
if not "%1" == "min" start /MIN cmd /c %0 min & exit/b >nul 2>&1
:start
if "%noconsole%" == "false" (%pycommand% "%squirrel%" -lib_call nutdb check_files )
if "%noconsole%" == "false" goto n1
start "<Red>" "%REDsquirrel%" /K -lib_call workers back_check_files
start "<Red>" "%REDsquirrel%" /K -lib_call workers scrape_local_libs
start "<Red>" "%REDsquirrel%" /K -lib_call workers scrape_remote_libs
:n1
if "%noconsole%" == "false" (%pycommand% "%squirrel%" -lib_call Interface start -xarg "%browserpath%" "%videoplayback%" "%height%" "%width%" "%port%" "%host%" )
if "%noconsole%" == "false" goto salida
start "<Red>" "%REDsquirrel%" /K -lib_call Interface start -xarg "%browserpath%" "%videoplayback%" "%height%" "%width%" "%port%" "%host%" "%noconsole%"
goto salida
:missing_things
echo ....................................
echo Il vous manque les choses suivantes:
echo ....................................
echo.
::File full route
if not exist "%dec_keys%" echo - "keys.txt" n'est pas correctement pointé ou est manquant.
echo.
pause
echo Le programme va se terminer maintenant
PING -n 2 127.0.0.1 >NUL 2>&1
goto salida
:salida
REM pause
exit