Using C# empty recycle binMy name is Mahesh, I'm working as developer in CMS (jsr) india. My newarticle name is "using C# empty recycle bin" .In this article my explanation is different way I used flash forexplanation, with this mail I am sending flash files also and .exe file oncecheck it if that is good add in you webpa ...
Contributed by aspfree Rating: / 21 November 08, 2001
My name is Mahesh, I'm working as developer in CMS (jsr) india. My newarticle name is "using C# empty recycle bin" .
In this article my explanation is different way I used flash forexplanation, with this mail I am sending flash files also and .exe file oncecheck it if that is good add in you webpage .swf file I am sending .html filealso that is embedded with flash .swf file if you like, cut .html source fileadd your web page that all.
using System.IO;
using System.Windows.Forms;
class Recycle
{
public static void Main()
{
int c=0;
foreach(string s1 in Directory.GetFiles("c:\\recycled"))
{
++c;
}
if(c>0)
{
DialogResult r=MessageBox.Show("Are you sure EmptyRecycleBin ?","Message from C#",
MessageBoxButtons.YesNo,MessageBoxIcon.Question);
int ss=(int)r;
if(ss==6)
{
foreach(string s in Directory.GetFiles("c:\\recycled"))
{
File.Delete(s);
}
}
}
}
}