实现效果:
知识运用:
Environment类的SystemDirectory属性 //获取系统目录的完全限定路径
public static string SystemDirectory {get;}
实现代码:
private void Form1_Load(object sender, EventArgs e) { label1.Text ="系统目录为:"+ Environment.SystemDirectory; }
原文:https://www.cnblogs.com/feiyucha/p/10291668.html