Click here to Skip to main content
15,884,353 members
Articles / Programming Languages / C#

Folder Listener: A Tool to Watch File System Activity in any Folder

Rate me:
Please Sign up or sign in to vote.
2.78/5 (13 votes)
27 Jan 2008CPOL1 min read 65.9K   3.4K   40  
This tool is for the tester and developer to track any file system activity to a particular folder
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace FileWatch
{
	/// <summary>
	/// Summary description for options.
	/// </summary>
	public class options : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button button1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public options()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.button1 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(433, 28);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(63, 20);
			this.button1.TabIndex = 0;
			this.button1.Text = "Exit";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// options
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(506, 231);
			this.Controls.Add(this.button1);
			this.Name = "options";
			this.Text = "File Watch Options";
			this.Load += new System.EventHandler(this.options_Load);
			this.ResumeLayout(false);

		}
		#endregion
//------------------------------------------------------
private void button1_Click(object sender, System.EventArgs e)
{
	this.Close();		
}

		private void options_Load(object sender, System.EventArgs e)
		{
		
		}
//------------------------------------------------------
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer HCL Technology
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions