Im trying to do nested for below :-
1. loop out thru sharepoint
2. for every sharepoint, copy only recent files, for testing i just echo the most recent filename.
here what i came out and didnot work as i expected for 2 loop..
For /F "tokens=1,2,3,4" %%a in (Tools.txt) Do (
echo %%a,%%b,%%c,%%d >> extract.txt
for /f "delims=" %%m in ('dir /od /a-d /b %%a\*.txt') do set recent=%%m
echo %%m >> recent.txt