Depends on your front-end. But a few I have used can accept a custom list from a list of romnames. Gameex for example.
So you'd go to a command prompt and navigate over to your Roms directory and type: dir /a:d /b>>chdlist.txt
That should give you a list of directories in your Roms directory. Those should match the name of your CHD Roms which I am assuming you can import into your front-end if its like mine.
Just tried it, works well.
Sent from my Nexus 6P using Tapatalk