Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
AnswerRe: REGEX and parse date Pin
Judah Gabriel Himango15-Aug-06 11:45
sponsorJudah Gabriel Himango15-Aug-06 11:45 
GeneralRe: REGEX and parse date Pin
Judah Gabriel Himango15-Aug-06 11:56
sponsorJudah Gabriel Himango15-Aug-06 11:56 
GeneralRe: REGEX and parse date Pin
User 665815-Aug-06 12:30
User 665815-Aug-06 12:30 
AnswerRe: REGEX and parse date Pin
Bitwise Gamgee15-Aug-06 12:29
Bitwise Gamgee15-Aug-06 12:29 
Questioncheck format of date input Pin
rcwoods15-Aug-06 10:41
rcwoods15-Aug-06 10:41 
AnswerRe: check format of date input Pin
Judah Gabriel Himango15-Aug-06 11:47
sponsorJudah Gabriel Himango15-Aug-06 11:47 
GeneralRe: check format of date input Pin
Guffa15-Aug-06 14:43
Guffa15-Aug-06 14:43 
Questionwhy file created event in Windows Servcice fires only once? Pin
Bharat Gadhia15-Aug-06 9:46
Bharat Gadhia15-Aug-06 9:46 
I have a windows servcie application which has apart from OnStart,OnStop() only one more event and is FSWatcher_Created, where FSWatcher is FileSystemWatcher.In FSWatcher_Created eventhandler I have following code:
FileInfo file;
pathToWatch = ConfigurationSettings.AppSettings["PATHTOWATCH"];
//gets file name
fileName = Util.GetFileNameFromPath(e.Name);
//gets file path
filePath = pathToWatch+Util.GetFileNameFromPath(e.Name);
file = new FileInfo(e.FullPath);
MoveTo = ConfigurationSettings.AppSettings["PATHTOFILEMOVE"];
pathToMove = MoveTo+fileName;
if(file.Exists)
{
lock (m_SynLock)
{
file.MoveTo(pathToMove);
}
}
After installing I tested the service. When I drop a file in a designated folder(PATHTOWATCH) it immediately picks up and drops into another folder(pathToMove). If I now do the same second or third time with new file it does not move file to another folder.It seems that windows service somehow does not respond. Can anyone please explain this behaviour and tell me what should I do that it detects the new file and move to another folde?.

Thank you in advance.
Bharat Gadhia

In life, failures teach you as much as — or perhaps more than — successes.
Thank you very much for the help.

AnswerRe: why file created event in Windows Servcice fires only once? Pin
Ennis Ray Lynch, Jr.15-Aug-06 12:44
Ennis Ray Lynch, Jr.15-Aug-06 12:44 
Questionglobal variable .... Pin
mostafa_h15-Aug-06 9:25
mostafa_h15-Aug-06 9:25 
AnswerRe: global variable .... Pin
Judah Gabriel Himango15-Aug-06 9:54
sponsorJudah Gabriel Himango15-Aug-06 9:54 
GeneralRe: global variable .... Pin
mostafa_h15-Aug-06 10:59
mostafa_h15-Aug-06 10:59 
GeneralRe: global variable .... Pin
Judah Gabriel Himango15-Aug-06 11:50
sponsorJudah Gabriel Himango15-Aug-06 11:50 
GeneralRe: global variable .... Pin
User 665815-Aug-06 12:15
User 665815-Aug-06 12:15 
AnswerRe: global variable .... Pin
beatles169215-Aug-06 13:17
beatles169215-Aug-06 13:17 
GeneralRe: global variable .... [modified] Pin
mostafa_h15-Aug-06 20:50
mostafa_h15-Aug-06 20:50 
GeneralRe: global variable .... Pin
beatles169215-Aug-06 22:24
beatles169215-Aug-06 22:24 
GeneralRe: global variable .... [modified] Pin
mostafa_h15-Aug-06 23:26
mostafa_h15-Aug-06 23:26 
GeneralRe: global variable .... Pin
mostafa_h16-Aug-06 19:54
mostafa_h16-Aug-06 19:54 
QuestionTabPage out of order Pin
Kenny O'Dell15-Aug-06 9:14
Kenny O'Dell15-Aug-06 9:14 
AnswerRe: TabPage out of order Pin
Nader Elshehabi15-Aug-06 11:49
Nader Elshehabi15-Aug-06 11:49 
AnswerRe: TabPage out of order Pin
Judah Gabriel Himango15-Aug-06 11:50
sponsorJudah Gabriel Himango15-Aug-06 11:50 
QuestionVisual Studio 2005 Deployment Pin
Marco225015-Aug-06 8:47
Marco225015-Aug-06 8:47 
AnswerRe: Visual Studio 2005 Deployment Pin
Judah Gabriel Himango15-Aug-06 9:13
sponsorJudah Gabriel Himango15-Aug-06 9:13 
GeneralRe: Visual Studio 2005 Deployment [modified] Pin
Marco225015-Aug-06 9:58
Marco225015-Aug-06 9:58 

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.