thanks tlhintoq
Actually I am copying files with a different extension (say .part), and when it is fininhed copying, the extension will be change to another ext. So the FilewatchSyatem will watch all files *.part, and then it will be fired when there is a change in the ext.
thanks
User Profile
Collapse
-
I will test it, I hope it will fit with my needs.
thanks a lot.Leave a comment:
-
-
-
Frinavale
1) what do you mean by OP ?
2) FileWatcher will add the file name to the queue, and there is another events will add some files to the queue, so the FileWatcher do what is supposed to do, adding to the queue.
later, I have to check the queue, pop first item then burn it on a DVD,
pop the 2nd and save it in another folder, etc...
So I need to watch the Queue this time, if it contain entries, process...Leave a comment:
-
Code:protected override void OnStart(string[] args) { pq = new Queue(); FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = myPath; watcher.NotifyFilter = NotifyFilters.FileName; watcher.Filter = "*.txt"; watcher.Renamed += new RenamedEventHandler(OnRenamed); watcher.EnableRaisingEvents
Leave a comment:
-
All what you mentioned are done.
I need to handle the Queue after it enqueued with some files?
say there are 10 files in the queue.
So it is better to use ininfint while loop or I have to use another thread ?
I don't want to block CPU from doing other activities in my infinit while loop....Leave a comment:
-
My question is about
Code:do { ... }while (true);
I mean I have to add Sleep(5000) or no need for it....Leave a comment:
-
-
long processing
Hi all
I am developing a small windows Service application which mointer a files in a specific folder and add their names to a queue by using a watch file class to add files to the queue.
This part is done.
Then in a windows Service I should move these files to another location (folder,DVD,... ).
How can I do this task ?
I am using now
Code:protected override void OnStart(string[]
No activity results to display
Show More
Leave a comment: