rem
FOR /F "tokens=*" %%G IN ('dir/b /s ^"S:\*.pdf^"') DO (
 echo %%G "-->" %%~zG >>fileinfo.txt
)
