I need a function that will list all files either on or below the specified path that gets fed in. Included is the project with more details. The function is called listfiles. Do not change the names of the variables. If more variables need to be declared, that fine though. Using the filesystemobject or Windows API is acceptable also. Here is an example I am talking about. For the included project the path is C:\Winnt This would mean that the function would return the list of file names, entire folder names, and paths including file names. For this example it should show all the files in not only in the included path but also for example, C:\Winnt\System and even C:\Winnt\Debug\Usermode possibly. It should go as deep as necessary because it needs to include every sub folder of the parent folder but nothing above the path. The list must be in alphabetical order just like you see in windows explorer by complete path including the file name. If you need to create a seperate function to do so, that is fine also. If you want to change the path information for developing purposes because there are too many files, that is fine also. It must be changed on the line filelist = listfiles("C:\winnt") because when I use this for real, it must still work properly. Do not change the part that writes the contents to a file. I need this so I can vertify that it works properly.
## Deliverables
The completed function to list every file on or below the specified path.
## Platform
Windows 2000, Windows XP Home Edition
## Deadline information
Must be completed one day after accepting the bid.