I'd like to create a batch file that
A) Reads all files in the current directory
B) Writes all files in the current directory to another batch file
C) Appends text to each line (I want to append "/Z /U" (for quiet and norestart respectively)
What I have so far:
BATCH FILE
@echo on
@setlocal enableextensions
@cd /d "%~dp0"
dir /b > installALLTHETHINGS.bat
echo /Z /U >> installALLTHETHINGS.bat
The output of the batch file is here:
OUTPUT
exe1.exe
bat1.bat
installme.msi
bat2.bat
bat3.bat
file list.bat
/Z /U
I'm sure I can figure out how to get the "/Z /U" on that last line without creating a new line, but is there a way to write "/Z /U" after every file in the directory?