User Profile

Collapse

Profile Sidebar

Collapse
Khayralla
Khayralla
Last Activity: Nov 21 '08, 06:24 PM
Joined: Oct 30 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Khayralla
    replied to long processing
    in .NET
    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
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    I will test it, I hope it will fit with my needs.
    thanks a lot.
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    yes, so there is no need for infinte loop....
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    insertAlias, it is a good question.
    thanks...
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    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
    ...
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    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....
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    My question is about
    Code:
    do
    {
    ...
    }while (true);
    maybe it will not execute others events which must be done by this service.
    I mean I have to add Sleep(5000) or no need for it....
    See more | Go to post

    Leave a comment:


  • Khayralla
    replied to long processing
    in .NET
    thanks, it was the first post for me...
    See more | Go to post

    Leave a comment:


  • Khayralla
    started a topic long processing
    in .NET

    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[]
    ...
    See more | Go to post
No activity results to display
Show More
Working...