I need to loop a set of files along a particular directory and store their filename,date modified and filesize into a .csv file.the below code is giving me syntax errors. Kindly help on the below:
setlocal enabledelayedexpansion enableextensions
set baseDIR=%1
cd %baseDIR%
FOR /R %%a IN (*) DO
"%%a","%%~ta","%%za" >>test.csv
exit /b %errorlevel%