File Moving and User Concurrency

Discussion in 'ASP .Net' started by =?Utf-8?B?c3Rrb2g=?=, Dec 22, 2004.

  1. We have a situation where we want users in an asp.net 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...
     
    =?Utf-8?B?c3Rrb2g=?=, Dec 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Homa
    Replies:
    1
    Views:
    466
    Alvin Bruney
    Nov 21, 2003
  2. linkswanted
    Replies:
    0
    Views:
    947
    linkswanted
    Dec 21, 2007
  3. linkswanted
    Replies:
    0
    Views:
    1,579
    linkswanted
    Jan 6, 2008
  4. linkswanted
    Replies:
    0
    Views:
    454
    linkswanted
    Jan 23, 2008
  5. linkswanted
    Replies:
    0
    Views:
    638
    linkswanted
    Jan 24, 2008
Loading...

Share This Page