Thursday, February 21, 2013

Scan files in hard disk

No comments:
C# sample code below:


class Program
    {
        static void Main(string[] args)
        {
            try
            {
                string dir = @"C:\";
                TreeScan(dir);
                Console.ReadLine();
            }
            catch(Exception e)
            {
                Console.WriteLine("Error:" + e.Message);
                Console.Beep();
                Console.ReadLine();
            }
        }

        private static void TreeScan(string dir)
        {
            Console.WriteLine();
            Console.WriteLine("Files in: " + dir);
            foreach (string f in Directory.GetFiles(dir))
            {
                Console.WriteLine(f);
            }
            foreach (string d in Directory.GetDirectories(dir))
            {
                Console.WriteLine(d);
                Console.WriteLine();
                Console.WriteLine();
                TreeScan(d);
            }
        }
    }

Saturday, January 19, 2013

How to set filters in Gmail to move Facebook and other automated emails away from your inbox

2 comments:

Go to Gmail Settings by clicking the gear ion on the top left
  • Take Filters tab
  • On the page bottom click Create new filter
  • In the From filter type facebookmail.com
  • Click Create filter with this search » and in the next screen check skip the inbox and Apply the label and create a label by typing a label name like Facebook mails and click the Create button
  • Select the Checkbox Also apply filter to # matching conversations and click the Create filter button.

Repeat the above step with m.facebook.com

You can do these steps for: foursquare.com, dropbox.com, twitter.com, linkedin.com, soundcloudmail.com

Friday, November 30, 2012