Re: Handling locked files with C#

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello, Markus!

File is locked both for reading and writing?
Did you try opening the file with, say notepad. Will it succeed?

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Tue, 16 Oct 2007 09:17:49 -0000:

ME> Hi Newsgroup,

ME> I have a problem that is not directly C#-related, but I'd like to
ME> solve it in C#.

ME> A data acquisition station generates heaps of data, which shall be
ME> transferred to a server. As the connection may be rather slow, I
ME> can't wait until the acquisition ends - and unfortunately I don't
ME> have access to the data acquisition source codes.
ME> Is there a way to transfer this data while it is being recorded? The
ME> acquisition program locks the files during acquiring and writing the
ME> data, so opening the files and transferring the data that is already
ME> there, probably won't work. But there are programs out there that
ME> can open (for reading) locked files. How are they doing it?
ME> I thought, maybe Volume Shadow Services might be a way, but I could
ME> not find any examples proving it.

ME> Any ideas?

ME> Regards
ME> Markus


.



Relevant Pages

  • Re: daemons, sockets and ssh
    ... But does it ever make sense to have 0 open for writing, ... open for reading? ... It's very common. ... opening the terminal on fd 0 read/write and then duping it onto 1 and 2. ...
    (comp.unix.shell)
  • Re: Simultaneously Write to and Read from the same file
    ... opened the file for writing elsewhere, ... should specify FileShare.ReadWrite when opening the file for reading. ...
    (microsoft.public.dotnet.general)
  • Re: Cant create a new file
    ... It had to do with opening for writing only. ... I just thought that if you open for reading AND writing ... "gets" or similar request. ...
    (comp.lang.ruby)
  • Re: Opening a directory for writing
    ... Opening a directory for writing ... I am reading all the files in a directory through readdir....Now after ... perldoc -f print ...
    (perl.beginners)
  • Re: XY chart display(multiple plots) --help required
    ... What kind of data acquisition are you doing? ... are reading. ... only charts show the history length since that is ...
    (comp.lang.labview)