With the new file naming convention, I have provided scripts in https://github.com/Vishnu-BKM/NSE-Data-Download
You can take these scripts (CM and F&O bhav downloads) to fetch files for a date range (made compatible for both old and new formats)