根据路径获取文件名
http://zhidao.baidu.com/question/400979349.html
1 Path.GetFileName(fileName);
获取目录下的文件
View Code
1 string targetDirectory = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "/upload/vedio"; 2 string[] fileEntries = Directory.GetFiles(targetDirectory);
http://www.cnblogs.com/hanshuhe/archive/2011/10/09/2203404.html