@echo off rem Define the directory where your registry files are located set REG_FILES_DIR=C:\Scripts\Printers\02-Printer-Properties rem Loop through each .reg file in the directory for %%f in (%REG_FILES_DIR%\*.reg) do ( reg import "%%f" ) echo All registry files imported successfully.