Create CSV for import from File directories?

simple batch file would do that:

DIR %1 /B /S >files.csv

Save as a bat file and place it in the root directory.

Run the bat and will output directories and file names to files.csv same location as the bat file.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)