1、C# 代码 自己编写一个小程序,类是病毒但无害,就是会创建50*50*26个空文件夹,运行过产生30000个文件夹就等不下去了,删除新建的文件夹估计要10分钟,仅为娱乐private void button4_Click(object sender, EventArgs e)IList temp_list = new List();string path = “I:新建文件夹“;/*本人笔记本有I盘,同时为了删除方便*/ string path = “C: Program Files“; 用这行代码时估计你要崩溃string pathFile = “;char arry = new char2
2、6 a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z ;tryfor (int p = 0; p 200)/*文件夹的名字超过240字符后会报错,故取240以内都有效*/pathFile = “;catch (Exception ee)throw new Exception(ee.ToString();public static IList getListItems(IList list, int num)/*建立获取随机数*/IList temp_list = new List(list);IList return_list = new List();Random random = new Random();for (int i = 0; i 0)int arrIndex = random.Next(0, temp_list.Count);return_list.Add(temp_listarrIndex);temp_list.RemoveAt(arrIndex);elsebreak;return return_list;