From 988daadc67214765d89389bb2c3504bc8ee8fc06 Mon Sep 17 00:00:00 2001 From: Freeman Date: Sat, 23 May 2020 23:10:31 +0300 Subject: [PATCH] Build-examples script simplified, thanks 0CodErr --- build-examples.bat | 47 ++++------------------------------------------ 1 file changed, 4 insertions(+), 43 deletions(-) diff --git a/build-examples.bat b/build-examples.bat index 1479a1e..4af06e1 100644 --- a/build-examples.bat +++ b/build-examples.bat @@ -1,47 +1,8 @@ @echo off -call %~dp0Examples\ColorButtons\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\DateTime\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\DrawImage\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\DrawImageEx\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\DrawText\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\GetCurrentDir\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\GetPixel\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\GetPointOwner\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\Hello\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\LoadFile\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\ReadFolder\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\Screenshot\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\SetCursor\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\SetPixel\build.bat -if errorlevel 1 goto exit - -call %~dp0Examples\SetWindowPos\build.bat +for /d %%f in (%~dp0Examples\*) do ( + call %%f\build.bat + if errorlevel 1 goto exit +) :exit \ No newline at end of file