摘要: 检查驱动器信息 DriveInfo[] drives = DriveInfo.GetDrives(); foreach(var drive in drives) { if (drive.IsReady) { Console.WriteLine(new String('*',30)); Console 阅读全文
posted @ 2023-04-01 16:38 JohnYang819 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Environment.CurrentDirectory 和 AppDomain.CurrentDomain.BaseDirectory 都是C#中用于获取当前应用程序的目录路径的方法,但是它们的用途和行为是不同的。 Environment.CurrentDirectory 返回的是当前进程的当前工 阅读全文
posted @ 2023-04-01 10:53 JohnYang819 阅读(352) 评论(0) 推荐(1) 编辑