Results 1 to 2 of 2

Thread: [2.0] Problem Capturing file creation in InternetCache folder

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2007
    Posts
    4

    [2.0] Problem Capturing file creation in InternetCache folder

    Hi all!

    I'm having a problem with the filesystemwatcher to catch file creation in the InternetCache folder because the event 'Created' doesn't fire (Neither any of the other events)...

    I've seen other ppl with the same problem but i can't find answers

    Here's my code:


    Code:
            private void frmMain_Load(object sender, EventArgs e)
            {
                fswInternetCache.Path = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache).ToString();
                fswInternetCache.NotifyFilter = System.IO.NotifyFilters.FileName;
                fswInternetCache.Filter = "*.gif";
                wb.Navigate("http://www.google.com/");
            }
    
            private void fswInternetCache_Created(object sender, System.IO.FileSystemEventArgs e)
            {
                MessageBox.Show(e.FullPath);
            }
    Any ideas?

    Thanks in advance
    Last edited by Tughack; Dec 23rd, 2007 at 07:51 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width