EDA驿站

去浮躁,求真知;重实干,勤与研

  博客园  :: 首页  :: 新随笔  ::  ::  :: 管理
我用下面的代码对一批文件的后缀进行改名。但就是没用,急呀!
String pathName , newExtention;
   try
   {
    foreach(FileInfo fileInfo in fileInfoList)
    {
     pathName =fileInfo.FullName;
     newExtention = "." +  newSuffix.Text;
     System.IO.Path.ChangeExtension( pathName ,newExtention);   
    }
   }
   catch(IOException ioExpecption){
    Console.WriteLine("The process failed: {0}", ioExpecption.ToString());
   }

请各位同仁赐教!
谢谢
posted on 2004-05-19 00:24  易学  阅读(2229)  评论(6编辑  收藏  举报