Hey guys,
Thanks for this. Cant get the code to work yet though.
Mac - the reason i am doing this is to get a row count for an import log. I don't need to know the filesize, just the number of records it contains!
The code to create the txt file with the file list is:
dir G:\share\CRS\FTPDownloads/b s>G:\share\CRS\FTPDownloads\CDSDataImport.txt
This works great.
I have tried:
(for /f "delims=" %%a in (G:\share\CRS\FTPDownloads*.txt* /b /s') do ( for /f %%b in ('type "%file%"|find "" /v /c') do echo.%%a %%b
))>G:\share\CRS\FTPDownloads\CDSDataImport2.txt
But I cant get it to work.
Cheers for all your help gents!