diff --git a/scripts/windows/coco-dev-setup/batch/get_config.bat b/scripts/windows/coco-dev-setup/batch/get_config.bat index f97b73876..be18759c3 100755 --- a/scripts/windows/coco-dev-setup/batch/get_config.bat +++ b/scripts/windows/coco-dev-setup/batch/get_config.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -utilities\\get_var.exe config\\config.coco %1 -endlocal \ No newline at end of file +for /f "delims=" %%a in ('utilities\\get_var.exe config\\config.coco %1') do set "%%a" \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/get_download.bat b/scripts/windows/coco-dev-setup/batch/get_download.bat index ff7f4e7ce..42b483593 100755 --- a/scripts/windows/coco-dev-setup/batch/get_download.bat +++ b/scripts/windows/coco-dev-setup/batch/get_download.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -utilities\\get_var.exe config\\downloads.coco %1 -endlocal \ No newline at end of file +for /f "delims=" %%a in ('utilities\\get_var.exe config\\downloads.coco %1') do set "%%a" \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/get_text.bat b/scripts/windows/coco-dev-setup/batch/get_text.bat index 7ad60dc04..3b954288a 100755 --- a/scripts/windows/coco-dev-setup/batch/get_text.bat +++ b/scripts/windows/coco-dev-setup/batch/get_text.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -utilities\\get_var.exe localisation\\%1.coco %2 -endlocal \ No newline at end of file +for /f "delims=" %%a in ('utilities\\get_var.exe localisation\\%1.coco %2') do set "%%a" \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/open_text_file.bat b/scripts/windows/coco-dev-setup/batch/open_text_file.bat index b1ebd6f3e..6271391d8 100755 --- a/scripts/windows/coco-dev-setup/batch/open_text_file.bat +++ b/scripts/windows/coco-dev-setup/batch/open_text_file.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -start notepad.exe %1 -endlocal \ No newline at end of file +start notepad.exe %1 \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_dashed_seperator.bat b/scripts/windows/coco-dev-setup/batch/print_dashed_seperator.bat index 8ce0f08d8..727d7e61c 100755 --- a/scripts/windows/coco-dev-setup/batch/print_dashed_seperator.bat +++ b/scripts/windows/coco-dev-setup/batch/print_dashed_seperator.bat @@ -1,6 +1,3 @@ -@echo off -setlocal EnableDelayedExpansion echo. -echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" -echo. -endlocal \ No newline at end of file +echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +echo. \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_file.bat b/scripts/windows/coco-dev-setup/batch/print_file.bat index 7857ee47d..f40867969 100755 --- a/scripts/windows/coco-dev-setup/batch/print_file.bat +++ b/scripts/windows/coco-dev-setup/batch/print_file.bat @@ -1,7 +1,4 @@ -@echo off -setlocal EnableDelayedExpansion set "file=%1" for /f "usebackq tokens=* delims=;" %%a in ("%file%") do ( echo.%%a -) -endlocal \ No newline at end of file +) \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_header.bat b/scripts/windows/coco-dev-setup/batch/print_header.bat index cf538540d..5a8c68062 100755 --- a/scripts/windows/coco-dev-setup/batch/print_header.bat +++ b/scripts/windows/coco-dev-setup/batch/print_header.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -print_file config/header.coco -endlocal \ No newline at end of file +print_file config/header.coco \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_info.bat b/scripts/windows/coco-dev-setup/batch/print_info.bat index 76a3a6117..fa3894c6f 100755 --- a/scripts/windows/coco-dev-setup/batch/print_info.bat +++ b/scripts/windows/coco-dev-setup/batch/print_info.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -print_file config/info.coco -endlocal \ No newline at end of file +print_file config/info.coco \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_license.bat b/scripts/windows/coco-dev-setup/batch/print_license.bat index 37ab5110f..4f94de71c 100755 --- a/scripts/windows/coco-dev-setup/batch/print_license.bat +++ b/scripts/windows/coco-dev-setup/batch/print_license.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -print_file config/license.coco -endlocal \ No newline at end of file +print_file config/license.coco \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_seperator.bat b/scripts/windows/coco-dev-setup/batch/print_seperator.bat index 56c3c38cb..c68792d46 100755 --- a/scripts/windows/coco-dev-setup/batch/print_seperator.bat +++ b/scripts/windows/coco-dev-setup/batch/print_seperator.bat @@ -1,6 +1,3 @@ -@echo off -setlocal EnableDelayedExpansion echo. -echo "-----------------------------------------------------------------------------" -echo. -endlocal \ No newline at end of file +echo ----------------------------------------------------------------------------- +echo. \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/print_tips.bat b/scripts/windows/coco-dev-setup/batch/print_tips.bat index 1be9a8691..90d1ec795 100755 --- a/scripts/windows/coco-dev-setup/batch/print_tips.bat +++ b/scripts/windows/coco-dev-setup/batch/print_tips.bat @@ -1,4 +1 @@ -@echo off -setlocal EnableDelayedExpansion -print_file config/tips.coco -endlocal \ No newline at end of file +print_file config/tips.coco \ No newline at end of file diff --git a/scripts/windows/coco-dev-setup/batch/setup.bat b/scripts/windows/coco-dev-setup/batch/setup.bat index 0519ecba6..fa2ef5ef4 100755 --- a/scripts/windows/coco-dev-setup/batch/setup.bat +++ b/scripts/windows/coco-dev-setup/batch/setup.bat @@ -1 +1,19 @@ - \ No newline at end of file +@echo off +setlocal EnableDelayedExpansion + +Color 0A +mode con: cols=78 lines=60 + +call print_header +call print_dashed_seperator + +call get_config version +set "version=%temp_var%" +call get_config author +set "author=%temp_var%" +call get_config copyright +set "copyright=%temp_var%" +echo Welcome to the automated Installation of the CodeCombat Dev. Environment! +echo v%version% authored by %author% and published by %copyright%. + +endlocal \ No newline at end of file