Open Notepad, to write the code below
dir *. * / b> .txt document list
Save as .bat can get a list of documents