大赵传奇

GIS解决方案,webgis , 桌面、数据、服务--QQ276605216

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

using System.IO;

 

namespace ConsoleApplication1

{

    class Program

    {

        static void Main (string[] args)

        {

            string path = @"D:\SkinData\the_asphalt_world";

            string[] files = Directory.GetFiles(path);

 

            foreach (string s in files)

            {

                if (s.IndexOf("SkinData.the_asphalt_world.") > 0)

                    Microsoft.VisualBasic.FileSystem.Rename(s, s.Replace("SkinData.the_asphalt_world.", ""));

            }

        }

    }

}

posted on 2008-08-01 10:46  赵长青  阅读(275)  评论(4)    收藏  举报