Batch script stops after the FOR loop
Code snippet:
set zu_kopierende_files[0]="config.ini"
set zu_kopierende_files[1]="Anleitung.txt"
set zu_kopierende_files[2]="README.md"
set zu_kopierende_files[3]="galaxis.exe"
set zu_kopierende_files[4]="updater.bat"
setlocal enabledelayedexpansion
for /l %%n in (0,1,4) do (
echo !zu_kopierende_files[%%n]!
move "!SrcFolder!!zu_kopierende_files[%%n]!" "!DstFolder!"
)
The files are moved correctly. However, the script then stops. Anyone have any advice?
Comments
Post a Comment