Posts

Showing posts with the label FOLDERS

FileSystemWatcher Events and incomplete file errors

This is a question that has popped up numerous times, and I myself have had to deal with it: You get a FileSystemWatcher event that a new file was created in a folder you are monitoring. So you try to process the file, but problems arise because the process that has written the file isn't finished writing it yet. One way to handle this is to have the process that is writing the file send a second small text file consisting of something like the name of the file just written and the datetime that it was completed. You would get an event that this new file had been written, and your code logic would tell you what to do at this point. Of course, this assumes that you have sufficient control over the file - writing process to make this change. One newsgroup poster commented, "We're running a windows service which contains several filesystemwatchers. Sometimes we hit spikes of 20-50.000 files in a matter of seconds and each file can potentially take some time to process. The...

Windows Live Folders debut

Looks like Microsoft has opened up its Windows Live Folders offering here . Nothing earth-shaking, but it has a nice clean user interface and offers 500MB of free storage. You can store documents, music etc. in various folders, send links to friends, make it public, private or shared only to certain people. You can also control read or contribute settings on a folder for others. Standard HTTPInputFile control uploads, no fancy ActiveX or other junk to bomb-out your browser. Here is an example link to a file I have in one of my "public" folders: http://cid-683c01ce35fb357d.skydrive.live.com/self.aspx/Public/pondpic.jpg BTW -- they have an IFRAME snippet that "embeds" a Live Drive (yep - they've changed the name already) item in your page. You want to be very careful about using these - I had one in this post and then every time I'd load this UnBlog in my browser, the little booger would take control and redirect everybody to the Live Drive page. DOH! I...