first draft update account

This commit is contained in:
Rene Kaßeböhmer
2025-04-11 14:49:18 +02:00
parent 6bd77c8b3e
commit 9174dafb43
10 changed files with 83 additions and 18 deletions

21
run.bat
View File

@ -1,26 +1,17 @@
@echo off
setlocal enabledelayedexpansion
:: Change directory to where prepared_steps is located
cd ..\..\prepared_steps
cd .\prepared_steps
:: Loop through all folders in prepared_steps
for /d %%f in (*.*) do (
set "current_dir=%%f"
:: Check if command.txt exists in the current folder
if exist "%current_dir%\command.txt" (
echo Running command from %current_dir%
if exist "%%f\command.bat" (
echo Running command from %%f
:: Read the command from command.txt and execute it
for /f %%c in ('type "%current_dir%\command.txt"') do (
start "" "%%c"
for /f "usebackq delims=" %%c in ('type "%%f\command.bat"') do (
call %%c
)
:: Pause after each command to see results
pause
) else (
echo No command.txt found in %current_dir%
echo No command.bat found in %%f
)
)