Skip to content

Instantly share code, notes, and snippets.

@AskinNet
Forked from zeegin/1cv8.bat
Created January 16, 2020 10:44
Show Gist options
  • Save AskinNet/b79b7cd01706f4bfee32cb018b7b8608 to your computer and use it in GitHub Desktop.
Save AskinNet/b79b7cd01706f4bfee32cb018b7b8608 to your computer and use it in GitHub Desktop.
BSL Build cf from EDT
@echo off
chcp 1251 > nul
echo $ 1cv8 %*
set LOGFILE=%temp%\%random%.log
"C:\Program Files\1cv8\current\bin\1cv8" %* /Out %LOGFILE%
<%LOGFILE% (set /p LOGFILECONTENT=)
echo %LOGFILECONTENT%
if exist %LOGFILE% (
del /f /s /q %LOGFILE% > nul
)
exit /b
@echo off
set CI_PROJECT_DIR=%~dp0/../
set PRJ=%CI_PROJECT_DIR%/EDT_PROJECT_DIR
set WP=%CI_PROJECT_DIR%/bin/w
set XML=%CI_PROJECT_DIR%/bin/xml
set IB=File="%CI_PROJECT_DIR%/bin/db"
set CF=%CI_PROJECT_DIR%/bin/1cv8.cf
call ring edt workspace export --workspace-location %WP% --project %PRJ% --configuration-files %XML%
pushd %~dp0
call 1cv8 CREATEINFOBASE %IB%
call 1cv8 DESIGNER /WA- /DisableStartupDialogs /IBConnectionString %IB% /LoadConfigFromFiles %XML% /UpdateDBCfg
call 1cv8 DESIGNER /WA- /DisableStartupDialogs /IBConnectionString %IB% /CreateDistributionFiles -cffile %CF%
popd
@echo off
if /%1 == / goto help
pushd "C:\Program Files\1cv8"
if exist current\ rmdir current
mklink /j current %1
popd
goto end
:help
echo set-current-version - Makes symbolic links pointing to current 1C-Enterprise version's folders
echo Parameter: 1C-Enterprise version number
echo Example: set-current-version 8.3.5.1248
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment