On Windows I use something like that:
@echo off
SET updatefile=updatefiles.txt
echo -- %date% %time% Start reading files > %updatefile%
echo.
for %%C in (.\*.sql) do (
echo INSERT INTO `updates` (name^) VALUES ('%%~nxC'^); >> %updatefile%
)
echo Done !
pause
--- Canned message start ---
It appears the issue in the original post was solved, so this thread shall be closed.
Should you encounter any other difficulties, please open a new thread.
--- Canned message end ---