C#获取文件创建时间的代码
2021-06-20 10:13
阅读:411
标签:朋友 应该 tco upper 创建 tin source com 创建时间
using System;
using System.IO;
class Class1 {
static void Main(string[] args) {
string[] cla = Environment.GetCommandLineArgs();
if (cla.GetUpperBound(0) == 2) {
FileInfo fi = new FileInfo(cla[1]);
fi.MoveTo(cla[2]);
Console.WriteLine("File Created : " + fi.CreationTime.ToString());
Console.WriteLine("Moved to : " + cla[2]);
} else
Console.WriteLine("Usage: mv
下一篇:C# 值传参和引用传参
评论
亲,登录后才可以留言!