473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Synchronize accessing a file

Hi,
I have an application the users will run on their PCs simultaneously. The
users will move/delete some files under a share directory at server. But only
one user can do it at the same time. Is there any .net class can provide this
mechanism? (synchronize processes in different PCs)
Thanks.

Li

Jul 21 '05 #1
3 1053
Hi Li,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to lock the files in a shared
directory when moving or deleting them. If there is any misunderstanding,
please feel free to let me know.

When files are being moved or deleted, they are automatically locked by the
windows file system. We needn't care about that. So I would like to confirm
whether you need to lock a single file or make only one of your client
program access to the files. If the latter one is true, I think you have to
create some file in the shared folder to be a marker, so the program will
check that to decide whether it can do the moving or deleting operation.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Thanks.

Li

"Kevin Yu [MSFT]" wrote:
Hi Li,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to lock the files in a shared
directory when moving or deleting them. If there is any misunderstanding,
please feel free to let me know.

When files are being moved or deleted, they are automatically locked by the
windows file system. We needn't care about that. So I would like to confirm
whether you need to lock a single file or make only one of your client
program access to the files. If the latter one is true, I think you have to
create some file in the shared folder to be a marker, so the program will
check that to decide whether it can do the moving or deleting operation.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi Li,

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Thomas Rademacher | last post by:
Hallo, I want to synchronize the main function of my script. I havn't a class structure in my script. def main(): # my code to synchronized if __name__=='__main__': main()
4
by: gene.ellis | last post by:
Using a web interface, I am placing text into a SQL database. From time to time, I would like to synchronize one of my other tables in the database with the table that I am inserting content into....
8
by: Zlatko Matiæ | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: Mamatha | last post by:
Hi I have one application in VB.NET using mutiple threads. While that application running,threads get some data and placed it into a file.That same file is used contineously by another threads...
3
by: Li Weng | last post by:
Hi, I have an application the users will run on their PCs simultaneously. The users will move/delete some files under a share directory at server. But only one user can do it at the same time. Is...
1
by: Stephen | last post by:
Hi, Is there a sample application using ASP .NET to synchronize folder contents? I want to synchronize folder contents on 2 different machines Thanks, Stephen
0
by: Christian Rühl | last post by:
Good Morning, I have generated a TreeView from a DOM. Now I want to set the checkboxes according to an ini file I've written. The ini file looks like this: .... Dsr=1 version=1...
0
by: José Joye | last post by:
Hello, Is there a way within VS2005 to synchronize the Solution Explorer view and the file we are currently working on. Say I'm working on blabla.cs file which is located within the foo...
4
by: rdemyan via AccessMonster.com | last post by:
My application deals with building information. Users may want to view autocad drawings for a particular building. The problem is that the central server is so slow for some users that it could...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.