but where do i type in
'dir /b > templist.txt' and do I type it in exactly as you've written?
In a command prompt, and yes, apart from the ' at each end.
The point is that you are creating a text file from the directory listing of the folder containing the names.