Checking file changes
-
I have a ASP.NET application that needs to check for changes on the client side for a file. This file is constantly being changed and I need , that everytime the file is changed to open the file and check for new data to transmit to my ASP.NET app, so what do you advise ? Building a dotnet service(it's possible wihout com interop ?) that's is constantly checking the file on the filesystem,or using some javascript function using the filesystem object and a timer to check for changes of the file, or some other way ? Thanks in advance, Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
-
I have a ASP.NET application that needs to check for changes on the client side for a file. This file is constantly being changed and I need , that everytime the file is changed to open the file and check for new data to transmit to my ASP.NET app, so what do you advise ? Building a dotnet service(it's possible wihout com interop ?) that's is constantly checking the file on the filesystem,or using some javascript function using the filesystem object and a timer to check for changes of the file, or some other way ? Thanks in advance, Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
I am not aware of such stuff inside the .NET CLR. You've got dedicated functions in the WIN32 File I/O APIs, including
ReadDirectoryChangesW
, etc. Now this require WIN32 interop. Adding COM or ActiveX interfaces would allow you to execute it from Javascript code. -
I am not aware of such stuff inside the .NET CLR. You've got dedicated functions in the WIN32 File I/O APIs, including
ReadDirectoryChangesW
, etc. Now this require WIN32 interop. Adding COM or ActiveX interfaces would allow you to execute it from Javascript code..S.Rod. wrote: I am not aware of such stuff inside the .NET CLR. You've got dedicated functions in the WIN32 File I/O APIs, including ReadDirectoryChangesW, etc. Thanks , I resorted to another technique , using win32 api on one client side app , and recording the data on the database on the Server side. .S.Rod. wrote: Now this require WIN32 interop. Oh well, perphaps on the 2nd version, they'll put the rest of the windows api on it (insert dreamer icon here...) Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
-
I have a ASP.NET application that needs to check for changes on the client side for a file. This file is constantly being changed and I need , that everytime the file is changed to open the file and check for new data to transmit to my ASP.NET app, so what do you advise ? Building a dotnet service(it's possible wihout com interop ?) that's is constantly checking the file on the filesystem,or using some javascript function using the filesystem object and a timer to check for changes of the file, or some other way ? Thanks in advance, Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
-
I am not aware of such stuff inside the .NET CLR. You've got dedicated functions in the WIN32 File I/O APIs, including
ReadDirectoryChangesW
, etc. Now this require WIN32 interop. Adding COM or ActiveX interfaces would allow you to execute it from Javascript code.This class implements the equivelent Win API calls to monitor a file, or change in a directory. System.IO.FileSystemWatcher Quote from a clever bloke : "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
-
Could have a look at System.IO.FileSystemWatcher Quote from a clever bloke : "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
Giles wrote: Could have a look at System.IO.FileSystemWatcher This resolves the things on the server-side, and since I already resolved the client-side problem :-) Thanks :cool: Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
-
This class implements the equivelent Win API calls to monitor a file, or change in a directory. System.IO.FileSystemWatcher Quote from a clever bloke : "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
Yo! ;)
-
Yo! ;)
I'm guessing that the kitchen sink is in there somewhere. The .NET class lib seems to have everything, its just a case of finding it. :-D Quote from a clever bloke : "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
-
I'm guessing that the kitchen sink is in there somewhere. The .NET class lib seems to have everything, its just a case of finding it. :-D Quote from a clever bloke : "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
What we are lacking is a Find option in Anakrino! ;) (unfortunately, I have tried to recompile this masterpiece but couldn't download everything required to do so).