How can I add pattern to the following batch script in order to look for file (3) and not for all the files, after finding (3) then have to add [%DailyloadDateTime%] at the end of file.
1. ODS_ATI_NSource-[201712071636]-[201712071637].csv
2. ODS_ATI_NSource-[201712071637].csv
3. ODS_ATI_NSource.csv
for /F "delims=" %%j in ('dir /s /b *.csv') do (
rename "%%j" "%%~nj-[%DailyloadDateTime%]%%~xj"
)