Results 1 to 7 of 7

Thread: [2.0] Folder monitor?

  1. #1

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    [2.0] Folder monitor?

    I have Trillian set to auto accept files and stick them in a fixed folder... but it doesn't tell me when a transfer has happened... so I'd like to build a service or background app that watches that folder for changes and gives me a System Tray alert when a change happens. Where would I start for something like this?

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [2.0] Folder monitor?

    FileSystemWatcher. Have one to watch the download folder and wait for a new file to appear. Then each time a new file appears have another process watch it's open/closed status, when that file closes give the user message.
    I don't live here any more.

  3. #3

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2.0] Folder monitor?

    What woudl the open/closed status be? Would that determine if the transfer is complete or not?

  4. #4

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2.0] Folder monitor?

    csharp Code:
    1. FileSystemWatcher fsw = new FileSystemWatcher(fbd.SelectedPath);
    2.             fsw.IncludeSubdirectories = true;
    3.             fsw.EnableRaisingEvents = true;
    4.             fsw.Created += new FileSystemEventHandler(fsw_Created);
    So that much works. Right now, it's just a message box. Is there a way to create a nice system tray notification like Windows Live Messenger or Outlook?

  5. #5
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [2.0] Folder monitor?

    I don't understand why you need to do this. Trillian will tell you when a download starts and when it completes.... if you have this turned off, then turn it back on.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  6. #6

    Thread Starter
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: [2.0] Folder monitor?

    Did you read my OP? I have auto-accept on, because otherwise it's too many windows. I don't have a second screen running here yet, and I'm already way out of space. All I want is an easy and out-of-the-way notification that something's happened.

  7. #7
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [2.0] Folder monitor?

    Quote Originally Posted by timeshifter
    What woudl the open/closed status be? Would that determine if the transfer is complete or not?
    I don't know how Trillian works but I meant waiting for the file read-write status to change.
    I don't live here any more.

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