-
Notifications
You must be signed in to change notification settings - Fork 0
/
distribexist83.cmd
73 lines (54 loc) · 2.49 KB
/
distribexist83.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
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
CLS
echo on
rem CHCP 1251
REM %cd% refers to the current working directory (variable)
REM %~dp0 refers to the full path to the batch file's directory (static)
REM %~dpnx0 refers to the full path to the batch directory and file name (static).
REM ECHO %cd% - the current working directory (variable)
REM ECHO %~dp0% - the full path to the batch file's directory (static)
REM ECHO %~dpnx0% - the full path to the batch directory and file name (static)
SET SETTINGSFILE=distrib.settings
FOR /F "eol=# delims== tokens=1,2" %%i IN (%SETTINGSFILE%) DO (
REM ‚ ¯¥à¥¬¥®© i - ª«îç
REM ‚ ¯¥à¥¬¥®© j - § 票¥
REM Œë âà ᫨à㥬 íâ® ¢ ¯¥à¥¬¥ë¥ ®ªà㦥¨ï
SET %%i=%%j
)
SET FILE4LOG= "scriptlog.log"
REM -- enterptise executable filename full path
REM SET ONECFILE="C:\Program Files (x86)\1cv82\common\1cestart.exe"
SET ONECFILE="C:\Program Files (x86)\1cv8\8.3.13.1644\bin\1cv8.exe"
REM -- infobase connection parameters
SET BASE=/S"localhost\st_devel" /N"%LOGIN%" /P"%PASSWORD%"
REM -- repository connection parameters
SET REPOS=/ConfigurationRepositoryF"tcp://127.0.0.1:1742\st_devel" /ConfigurationRepositoryN"%LOGINREP%" /ConfigurationRepositoryP"%PASSWORDREP%"
SET FOLDER4BKUP=E:\v13\st_devel\
SET FOLDER4DISTR=D:\FTP\va13ak\st\distribution\1.4.1.6\
SET FOLDER4SETTINGS=%~dp0%
SET FILE4SETTINGS=%FOLDER4SETTINGS%protection-install.properties
SET FILE4RESULT=%FOLDER4SETTINGS%protection-install.result
IF "%time:~0,1%" LSS "1" (
SET FNAMEDT=%date:~6,4%%date:~3,2%%date:~0,2%-0%time:~1,1%%time:~3,2%
) ELSE (
SET FNAMEDT=%date:~6,4%%date:~3,2%%date:~0,2%-%time:~0,2%%time:~3,2%
)
REM -- bkup configuration filename full path
SET FNAMECONF="%FOLDER4BKUP%bkup_st_%FNAMEDT%.cf"
REM -- bkup infobase configuration filename full path
SET FNAMEDBCONF="%FOLDER4BKUP%bkup_st_%FNAMEDT%_db.cf"
REM -- congiguration delivery filename full path
SET FNAMEDISTR="%FOLDER4DISTR%1Cv8.cf"
SET USER=ww
SET DELEY=300
SET DELEYPINGB=60
SET DELEYPINGF=30
SET DATETIME=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2% %TIME:~0,2%:%TIME:~3,2%:%TIME:~6,2%
echo -------------------------------------------------------------- >>%FILE4LOG%
echo %DATETIME% ®¥á« áì.. >>%FILE4LOG%
echo %FNAMECONF%
REM -- protecting distribution file...
echo %DATETIME% “áâ ¢«¨¢ ¥¬ § é¨âã... >>%FILE4LOG%
%ONECFILE% ENTERPRISE /FE:\v13\WiseAdvise /C"%FILE4SETTINGS%" /OUT"%FILE4RESULT%" >>%FILE4LOG%
REM -- copying distribution file...
echo %DATETIME% Š®¯¨à㥬 ä ©« ¯®áâ ¢ª¨... >>%FILE4LOG%
%ONECFILE% ENTERPRISE /FE:\v13\WiseAdvise /C"%FILE4SETTINGS%;%FILE4RESULT%" >>%FILE4LOG%