>DIR . /b /a-d
Very good, add at the end for recursive subdirectories. But that would only work if the database stores data using WebDav where files are stored to hard disk and links to those files are stored in the database. Modern databases use BLOBs and can store an entire document in a field. Oracle uses CLOBS which can actually store another database with BLOBs in them in one field in the Oracle Database such as a MS SQL Server Database. The best bet is to have a real database programmer query the databases, you will find it all and any other methodology.