|
-
Feb 1st, 2008, 02:13 PM
#1
[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?
-
Feb 1st, 2008, 02:18 PM
#2
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.
-
Feb 1st, 2008, 02:20 PM
#3
Re: [2.0] Folder monitor?
What woudl the open/closed status be? Would that determine if the transfer is complete or not?
-
Feb 1st, 2008, 03:09 PM
#4
Re: [2.0] Folder monitor?
csharp Code:
FileSystemWatcher fsw = new FileSystemWatcher(fbd.SelectedPath); fsw.IncludeSubdirectories = true; fsw.EnableRaisingEvents = true; 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?
-
Feb 1st, 2008, 03:15 PM
#5
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.
-
Feb 1st, 2008, 03:22 PM
#6
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.
-
Feb 1st, 2008, 03:26 PM
#7
Re: [2.0] Folder monitor?
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|