There is no such things as "dos command" in Windows. What are your trying to do in ASP.NET makes no sense at all and would be extremely bad in general.
You need to use
System.IO.Directory.GetFiles
, see
http://msdn.microsoft.com/en-us/library/system.io.directory.aspx[
^].
There is a little problem though, the solution is discussed here:
Directory.Get.Files search pattern problem[
^].
Even if you do this correctly, showing files local to the server to the user of Web application looks like most crazy and absolutely unsafe activity. Don't tell me it can make any sense.
—SA