473,946 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with FileWatcher

Ok here is problem.

Steps:
1. Get filename from Directory.GetFi les collection
2. Store in SQL Server the name as string
3. Another program implements FileWatcher
4. Change the file who's name is stored
5. Event happens but the filename in the returned argument is not the same
as that in the SQL Server
6. Lot's of change in capitalization.

This stops me from using the filename to search the database to check info.
This is incomprehensibl e that a new set of classes could not ensure that how
ever a file name is presented to you from the OS it shows the same each
time.

Lloyd Sheen
Nov 22 '05 #1
0 1917

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
355
by: Lloyd Sheen | last post by:
Ok here is problem. Steps: 1. Get filename from Directory.GetFiles collection 2. Store in SQL Server the name as string 3. Another program implements FileWatcher 4. Change the file who's name is stored 5. Event happens but the filename in the returned argument is not the same as that in the SQL Server 6. Lot's of change in capitalization.
4
1853
by: Ron King Jr | last post by:
I have a small problem with my windows service. The first time I start the service everything works the way it's suppose to, but randomly the service fails. The jist of the service is to use the filewatcher component to watch a directory. On create only, the service will read the small XML file, process the information. Once the file is finished processing the information, it should copy the file to another directory and delete the original....
0
1301
by: andre | last post by:
I’m trying to use the Filewatcher class in Visual Studio.net. I’m watching an FTP folder looking for a File. The File size is about 200 to 300 megs. When the file is done uploading, I need to process that file. How do I tell when the file is uploaded? If I process the file on Created the file is not complete and the processing will give me an error. Please if you can help, can you put code examples?
6
12268
by: Troy Murphy | last post by:
The help file for Visual Studio .NET version 1 had a Walkthru for installing a Windows Service that would monitor a folder. Version 1.1 does not seem to have that example anymore. Could someone please send or redirect me to an example of doing this? Thanks, Troy
0
1144
by: adam_scheich | last post by:
When creating a file in excel and saving it to a directory that is being watched by filewatcher using Save As, the filewatcher created event doesn't fire. It works fine for text files, but for word, excel...pretty much any office application, it's not firing. Anybody ever run into this? Thanks
2
5224
by: Roger Twomey | last post by:
I am working on a filewatcher application. The premis is: User uploads an xml file onto the web server the filewatcher app sees the xml file filewatcher app reads the file and inserts records into our sql server filewatcher app deletes the file. I am trying to figure out the best method of doing this, so I am adding code bit by bit. Currently I have this:
1
2171
by: ba.hons | last post by:
Hello, I have a file watcher object which i use to check a directory for XML files. When an XML file is placed in the directory i check the filename, to make sure it for me, then parse the XML and depending on whats in it, write an XML file back to the same directory. Now i have this all working, but i thought the best thing i could do is
5
5622
by: =?Utf-8?B?Sm9obiBT?= | last post by:
I am trying to find out if there is a way to tell if there is already a filesystemwatcher (created by a webservice) monitoring a folder. I have a webservice that creates a filesystemwatcher, monitors a folder and then returns the contents of the new/changed files. However, if the client app loses connection to the webservice without closing the filewatcher, and then reconnects (and thus creates a new watcher), I believe I end up with...
0
1152
by: tshad | last post by:
I have a filewatcher program that is working syncronously (which is how I want it to work). But my program will handle whatever files are in the folder at the time it runs. So when I drop 15 files in the folder at once, the event kicks of 15 times - even though all the files were processed in the 1st event. This is fine, it just won't find any files in the folder for 14 times. But if I drop 600 files in the folder at once, it will...
7
4185
by: tshad | last post by:
What exactly is FileWatcher doing? When you drop 100 files in a folder it is watching, it normally will fire of the event 100 times. In my case, I do all my processing on the first event so I don't need to reinitialize all my variables for each file. Normally 50 - 100 files will be dropped in the folder at a time. If I get an error, in my code it moves out to my try/catch code in the service - handle it and then exit. Then the next...
0
9979
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11556
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10685
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7412
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4933
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3538
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.