62,067
社区成员
发帖
与我相关
我的任务
分享
public partial class Form1 : Form
{
string str;
public string Str
{
get { return str; }
set { str = value; }
}
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
string[] index;
index=System.IO.Directory.GetFiles(@"网站的路径","*.*",System.IO.SearchOption.AllDirectories);
for (int i = 0; i < index.Length; i++) {
if (index[i].Length > 2300)
{
Str += index[i];
//Str += "<br>";
}
}
label1.Text = Str;
}
}