how can you retrieve all documents in a directory without entering them all

I have the following line
Call NameFiles(".txt,.doc,.scr,.....")
Can I shorten it