Click here to Skip to main content
15,892,537 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWorkflow or Windows Service??? Pin
Priya Prk7-Mar-11 23:04
Priya Prk7-Mar-11 23:04 
AnswerRe: Workflow or Windows Service??? Pin
mocastro8-Mar-11 3:13
mocastro8-Mar-11 3:13 
AnswerRe: Workflow or Windows Service??? Pin
Abhinav S14-Mar-11 18:07
Abhinav S14-Mar-11 18:07 
QuestionHow can we pick dynamic images and rotate them in J-Query Pin
Andrewnick206-Mar-11 19:35
Andrewnick206-Mar-11 19:35 
AnswerRe: How can we pick dynamic images and rotate them in J-Query Pin
Richard MacCutchan6-Mar-11 22:24
mveRichard MacCutchan6-Mar-11 22:24 
QuestionWindows service with FileSystemWatcher Pin
byka4-Mar-11 5:21
byka4-Mar-11 5:21 
AnswerRe: Windows service with FileSystemWatcher Pin
N a v a n e e t h4-Mar-11 5:30
N a v a n e e t h4-Mar-11 5:30 
GeneralRe: Windows service with FileSystemWatcher Pin
byka4-Mar-11 5:38
byka4-Mar-11 5:38 
I have a service which is monitors path by using FileSystemWatcher .
When files beeing drop it will moved to a dirrenet location
AddHandler fsw.Created, New FileSystemEventHandler(AddressOf File_Created)
it's working fine until service stoped. Let's say service stop for 1 min during that time other process drop a file to my monitor path.When service is re-started it won't pick that file. How to I process those files ?
here is my code:
Protected Overrides Sub OnStart(ByVal args() As String)<br />
               Try                      <br />
            fw = New StreamWriter(LogPathFile)<br />
              fsw = New FileSystemWatcher<br />
<br />
            If args.Length > 0 Then<br />
                ' the path to monitor has been specified in the argument passed in at Start<br />
                fsw.Path = args(0)<br />
            Else<br />
                fsw.Path = My.Settings.PathToWatch' My monitor path<br />
            End If<br />
            fsw.IncludeSubdirectories = False<br />
            fsw.Filter = "*.*"<br />
            fsw.NotifyFilter = NotifyFilters.LastWrite<br />
            AddHandler fsw.Created, New FileSystemEventHandler(AddressOf File_Created) ' File created

... Public Sub File_Created(ByVal obj As Object, ByVal e As FileSystemEventArgs)... processing files
GeneralRe: Windows service with FileSystemWatcher Pin
jschell4-Mar-11 7:32
jschell4-Mar-11 7:32 
GeneralRe: Windows service with FileSystemWatcher Pin
Eddy Vluggen4-Mar-11 12:23
professionalEddy Vluggen4-Mar-11 12:23 
AnswerRe: Windows service with FileSystemWatcher Pin
Bernhard Hiller7-Mar-11 20:31
Bernhard Hiller7-Mar-11 20:31 
QuestionConnecting SQL server 2008 to Visual studio 2008 Pin
MahaKh3-Mar-11 19:02
MahaKh3-Mar-11 19:02 
AnswerRe: Connecting SQL server 2008 to Visual studio 2008 PinPopular
Roger Wright3-Mar-11 19:47
professionalRoger Wright3-Mar-11 19:47 
GeneralRe: Connecting SQL server 2008 to Visual studio 2008 Pin
PIEBALDconsult4-Mar-11 10:28
mvePIEBALDconsult4-Mar-11 10:28 
GeneralRe: Connecting SQL server 2008 to Visual studio 2008 Pin
Roger Wright4-Mar-11 14:54
professionalRoger Wright4-Mar-11 14:54 
AnswerRe: Connecting SQL server 2008 to Visual studio 2008 Pin
PIEBALDconsult4-Mar-11 10:21
mvePIEBALDconsult4-Mar-11 10:21 
AnswerRe: Connecting SQL server 2008 to Visual studio 2008 Pin
Eddy Vluggen4-Mar-11 12:53
professionalEddy Vluggen4-Mar-11 12:53 
GeneralRe: Connecting SQL server 2008 to Visual studio 2008 Pin
MahaKh6-Mar-11 21:13
MahaKh6-Mar-11 21:13 
GeneralRe: Connecting SQL server 2008 to Visual studio 2008 Pin
Eddy Vluggen7-Mar-11 7:25
professionalEddy Vluggen7-Mar-11 7:25 
QuestionNon static class with only static methods Pin
DaveyM691-Mar-11 22:41
professionalDaveyM691-Mar-11 22:41 
AnswerRe: Non static class with only static methods Pin
musefan1-Mar-11 22:51
musefan1-Mar-11 22:51 
GeneralRe: Non static class with only static methods Pin
Nitin Singh India21-Mar-11 7:03
Nitin Singh India21-Mar-11 7:03 
GeneralRe: Non static class with only static methods Pin
musefan21-Mar-11 7:14
musefan21-Mar-11 7:14 
AnswerRe: Non static class with only static methods Pin
PIEBALDconsult2-Mar-11 2:11
mvePIEBALDconsult2-Mar-11 2:11 
GeneralRe: Non static class with only static methods Pin
Gregory Gadow4-Mar-11 4:08
Gregory Gadow4-Mar-11 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.