Using C# empty recycle bin by Mahesh

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
Rating: 2 stars2 stars2 stars2 stars2 stars / 21
November 08, 2001
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

advertisement

Using C# empty recycle bin



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.

Files in zip file

Recyclebin.cs
Recyclebin.exe
Recyclebin.html
Recyclebin.swf
Recyclebinflash.exe

Webpage code

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);
}
}
}
}
}
blog comments powered by Disqus
ASP.NET CODE ARTICLES

- How to Use the ListBox Control in ASP.NET 2.0
- How to Load XML Documents in ASP.NET 2.0
- DataGrid Code
- ASP.NET Guestbook
- User Controls and Client Side Scripting
- ASP.NET Programming with Microsoft's AS...
- ASP.NET Basics (part 3): Hard Choices
- ASP.NET Basics (part 2): Not My Type
- ASP.NET Basics (part 1): Nothing But .Net
- Directory Tree Browser
- How to get the confirmation of Yes/No from a...
- Complete example using custom errors and wri...
- Paging Certain # records per page .NET style
- General Methods of formatting and Subtractin...
- .NET LinkButton web control

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials