刷新文件夹

if (Directory.Exists(@"E:\Gan"))
            {
                DirectoryInfo dir=new DirectoryInfo(@"E:\Gan");
                FileInfo[] files = dir.GetFiles();               
                dir.Refresh();
            }

 

posted @ 2013-05-07 20:43  Predator  阅读(214)  评论(0编辑  收藏  举报