2019年1月4日

摘要: 实现效果: 知识运用: 系统API函数GetShortPathName [DllImport("Kernel32.dll")] private static extern Int16 GetShortPathName(string IpszLongPath,StringBuilder IpszSho 阅读全文

posted @ 2019-01-04 23:55 努力成长静待花开 阅读(1336) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: File类的Move方法 //将指定文件移动到新位置 public static void Move(string sourceFileName,string destFileName) Directory类的Move方法 //将文件或目录及其内容移动到新位置 public 阅读全文

posted @ 2019-01-04 23:23 努力成长静待花开 阅读(530) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: FileInfo类的Attribute属性 //获取或设置文件的属性 public FileAttributes Attributes {get; set;} 实现代码: 阅读全文

posted @ 2019-01-04 21:31 努力成长静待花开 阅读(398) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: FileInfo类的FullName,Length和CreationTime属性 DirectoryInfo类的GetFileSystemInfo方法 实现代码: 阅读全文

posted @ 2019-01-04 20:47 努力成长静待花开 阅读(141) 评论(0) 推荐(0)

摘要: 实现效果: 知识运用: DirectoryInfo类的GetFileSystemInfo方法 //检索当前目录的文件和子目录的强类型FileSystemInfo对象的数组 public FileSystemInfo[] GetFileSystmeInfo() FileInfo类的DirectoryN 阅读全文

posted @ 2019-01-04 20:01 努力成长静待花开 阅读(2120) 评论(0) 推荐(0)