修改文件名方法

static void Main(string[] args)
        {
            string srcFileName = @"c:\order.txt";
            string destFileName = @"c:\abcd.txt";
            if (File.Exists(srcFileName))
            {
               File.Move(srcFileName, destFileName);
            }
        }

 

posted on 2016-08-11 11:14  zhangx123  阅读(256)  评论(0)    收藏  举报

导航