@Siutsch
Bitte nicht als Kritik sehen mir sind nur ein paar Dinge aufgefallen:
beim list loop im shorter delay window muss man mit (yes, ja, no) bestätigen
die tweaks sind mit crlf (windows zeilen umbruch) gespeichert und werden mit dos2unix auf lf (unix linefeed) konvertiert.
Du könntest mit Editoren wie Notepad++ direkt die skripte mit lf abspeichern (bzw konvertieren und dann abspeichern).
bei den variablen die du verwendest würde ich etwas anders vorgehen:
PHP:
if [%asw_03%]==[X] ( if %asw_inst3% NEQ d (
for %%f in (choose\03%asw_inst3%.txt) do type %%f >> tweaks.txt
for %%f in (choose\03color.txt) do type %%f >> tweaks.txt
if %asw_03art1% NEQ 0 for %%f in (choose/03%asw_03art1%.txt) do type %%f >> tweaks.txt
if %asw_03art2% NEQ 0 for %%f in (choose/03%asw_03art2%.txt) do type %%f >> tweaks.txt
xcopy /E /Y /I "choose\config%asw_inst4%\%INST_03_name%" "config%asw_inst4%\%INST_03_name%" >>stdout.txt 2>&1
xcopy /E /Y /I "choose\config%asw_inst4%\bin" "config%asw_inst4%\bin" >>stdout.txt 2>&1
) else ( for %%f in (choose\03%asw_inst3%.txt) do type %%f >> tweaks.txt )
)
würde ich eher so schreiben
PHP:
if [%speedVideoReboot%]==[X] ( if %installMode% NEQ %deinstall% (
for %%f in (%dir_tweaks%/%speedVideoReboot_install%.txt) do type %%f >> tweaks.txt
for %%f in (%dir_tweaks%/%speedVideoRebootColor_install%.txt) do type %%f >> tweaks.txt
if %SpeedMeterType% NEQ %SpeedMeterGerman% for %%f in (%dir_tweaks%/%SpeedMeterType%.txt) do type %%f >> tweaks.txt
if %SpeedVideoAddons% NEQ %PlayerAndSpeedMeter% for %%f in (%dir_tweaks%/%SpeedVideoAddons%.txt) do type %%f >> tweaks.txt
xcopy /E /Y /I "%dir_tweaks%\%configInstall%\%dir_speedVideoReboot%" "%configInstall%\%dir_speedVideoReboot%" >>stdout.txt 2>&1
xcopy /E /Y /I "%dir_tweaks%\%configInstall%\bin" "%configInstall%\bin" >>stdout.txt 2>&1
) else ( for %%f in (%dir_tweaks%\%speedVideoReboot_deinstall%.txt) do type %%f >> tweaks.txt )
)
Bei batch ist generell das Problem das man schnell die Übersicht verliert.
Lesbarkeit ist denke ich daher sehr wichtig. Leider lernt man heute selbst im informatikstudium so ein Blödsinn wie:
PHP:
for(int i=0; i<10; i++){...
wer soll da wissen was damit gemeint ist?
PHP:
for(int userId=1; userId<=maxUsers; userId++){...
ist dagegen relativ einfach zu verstehen.