首页  编辑  

遍历当前驱动器

Tags: /C#/文件目录操作/   Date Created:

foreach ( string vDrive in Environment . GetLogicalDrives())

   textBox1 . AppendText(vDrive + "\r\n" );