Try:
File.WriteAllLines("D:\Temp\MyListBoxContent.txt", lstFiles)
But do be aware that if this is really VB.NET, then the list of files and the save location will both be on the Server, not the Client: VB code is executed at the server, and cannot access Client disks.