Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > File Moving and User Concurrency

Thread Tools

File Moving and User Concurrency

Posts: n/a
We have a situation where we want users in an application to access
the same directory containing image files (tif,jpg,etc). When a user click's
a button, then the next available image in the directory will be moved into
their own personal directory and out of the shared directory. It is critical
that no 2 user's ever have the same file in their personal directory.

User's will not be individually selecting these files, it will simply be the
1st file in the Directory.GetFiles() method of the shared directory.

Is the File.Move method developed in a way that keeps 2 files from being
moved at the same time or does something like SyncLock need to be used in
order to prevent the same file from being copied.

Thanks for any help...
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Guide Moving Companies Movers Storage linkswanted ASP .Net 0 01-23-2008 01:08 AM
Free Moving Estimate, Local Movers, Long Distance Moving, PackingSupplies, Storage Rental, Home Moving, Apartment Moving, Office Moving,Commercial Moving linkswanted ASP .Net 0 01-06-2008 04:45 AM
Moving to California Moving to L.A linkswanted Digital Photography 3 01-05-2008 04:22 PM
movers los angeles moving storage services movers in L.A companymoving companies moving in calfornia los angeles linkswanted HTML 0 12-21-2007 10:55 PM