473,563 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileSystem Watcher not working in win98

Hi
i am using filesystemwatch er class in .net but that is not working in win98
& winNT.
Ifound that there are API like
FIndFirstChange Notification & FindnextChangeN otification to get change
notification in win98 but it doesn't give the information that which file is
chnage & what is the change. I need this information necessiarlity.

I know in WinNT this problem is solved by using ReadDirectoryCh angeW Api but
i need some generic solution for both Win98 & WinNT. Also i don't want to
take snapshot of the information before making changes as this is
performance degraded. Suggest me the way.

This is very urgent. So tell me the solution as soon as possible
Nov 17 '05 #1
1 1619
hi,

AFAIK there is no way to solve this problem in w98, I had a similar issue
and could not found a solution, luckily the client upgraded to XP :)

what I did, was create a timer and check for the file I was expecting for.
it was not the best of the solution but it worked fine enough for me.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Puneet Trehan" <pu**********@h otmail.com> wrote in message
news:OH******** ******@TK2MSFTN GP09.phx.gbl...
Hi
i am using filesystemwatch er class in .net but that is not working in
win98
& winNT.
Ifound that there are API like
FIndFirstChange Notification & FindnextChangeN otification to get change
notification in win98 but it doesn't give the information that which file
is
chnage & what is the change. I need this information necessiarlity.

I know in WinNT this problem is solved by using ReadDirectoryCh angeW Api
but
i need some generic solution for both Win98 & WinNT. Also i don't want to
take snapshot of the information before making changes as this is
performance degraded. Suggest me the way.

This is very urgent. So tell me the solution as soon as possible

Nov 17 '05 #2

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

Similar topics

0
1506
by: Michele | last post by:
Hi all, There's a web-based project I'm working on, which my boss insists should be implemented as a java web service: I know Java, but I'm a complete newcomer to web services, so I would badly need your enlightened opinion to figure out if my boss is right. I'm going to have two sorts of clients connecting to my (Apache) web server: a...
9
5796
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is held in memory and therefore fast, without risk of damaging real files, and with none of the messiness of leftover files after testing. Googling...
0
1234
by: JIM.H. | last post by:
Hello, I am calling this sub to start watcher. It seems if the network drive went down and came back, watcher is not checking the file anymore. What is the secure way to stop it and call this sub to start it again. Thanks, Jim. Private Sub WatchFileSystem(ByVal fPath As String, ByVal fName As String)
0
2555
by: Jack David | last post by:
I am using the following code to monitor a directory for new files. The problem is that when I add a new file to the directory the code creates two events??? what do I have to do to limit it to only one event?? using System; using System.IO; namespace DirectoryWatcher
10
1708
by: sp | last post by:
The application is written in Visual Basic / .NET and working without problems under Windows XP, Windows 2000, Windows 2003 but it isn't working under Windows ME and Windows 98 - the computer hangs. After computers hangs you can move mouse but can not press any key. Alt - Ctrl- Del isn’t working so you have to reset the computer by pressing...
1
985
by: s421979 | last post by:
Hi, I am using file system watcher to detect new file has been uploaded. the thing is working properly with any ftp software but the problem is when i received the file and open and read it's content using file stream or stream reader. it shows the file is blank but the opposite side it is available with proper content. Please let me know...
5
5579
by: Lilith | last post by:
Would I be correct in assuming that the system file watcher is only valid for local drives and won't work for networked file system? -- Lilith
9
2906
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading the text files from the watched folder line by line into variables and then posting them to a SQL table. All of the code for the form is shown...
2
2344
by: visweswaran2830 | last post by:
HI, I Want to filter a file using filesystem watcher. In that, I want to filter more than one type. Let it be, *.exe, *.java....... How can I achieve this
0
7583
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...
0
7885
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. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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...
0
5213
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...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.