?
Solved

File locking on 2003 Server Share

Posted on 2006-04-05
18
Medium Priority
?
182 Views
Last Modified: 2010-03-18
Hi:

I am wondering if there is a way on 2003 server to share a directory, but once someone opens the application to lock the files so that another user can not open them until the first user exist the application.

The situation is I am setting up an old dos application that is single user, I however need different people to access the program throughout the day so i want it to be on the server, they do not need to be in it at the same time. If some one is in the program and someone else tries to get in, if the file was locked it would not be able to be opened and the second user would just get an error and try again later.

I don't know if this is possible or not, I know you can with novell.

Thanks
0
Comment
Question by:hpeet
  • 10
  • 7
17 Comments
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16386350
If you share the folder, on the share properties allow 1 person on the user limit. That should do it.
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16386378
share the folder or drive by right clicking it and selecting SHARING and SECURITY. Click Share this folder. Give it a name and set permissions for everyone or specific people. If it is a drive.. click new share and give it a name and the permissions. (You wont be able to "SEE" a drive or folder ending in $ it will be hidden)
0
 

Author Comment

by:hpeet
ID: 16386589
Thanks for the input, that would likely be the answer especially based on my question, the only problem is that this company runs this program for 20 plus companies so I was going to have one share, say maped to F: and then the 5 users could each go into one of the companies and do there work but not at the same company at a time. I would not have enough drive letters to create a seperate share for each one. It is an old program so it needs to run as a mapped drive can't use UNC. If you have any further ideas they would be appreciatted.

Thanks again,
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:Craig_200X
ID: 16386645
If I understand correctly, if the program is not accessing a central database you could make copies of the program in separate (companyname) foders and share each folder with max user limit 1 (giving only the accounts/people access to THEIR company folder) - giving a different mapping to the program to each company. That way you dont have to have separate drives... I think you could probably do virtual drive mapping here too.


0
 

Author Comment

by:hpeet
ID: 16388371
Correct, not a central database, the data for each company resides in a different dir. What do you mean by a virtue drive mapping, is that mapping a drive using the net use command?
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16388395
Actually its a bit different. like mounting a disc. but I think it would be easier to just share multiple folders, and limit the connections ... mapping them to the individ company.
0
 

Author Comment

by:hpeet
ID: 16388586
Thanks I will give that a try!
0
 

Author Comment

by:hpeet
ID: 16396558
I am on site and the program is a DOS program that all data resides in the same folder as the program, i can only launch the application once I get an error can't access a file that is required. I have increased the max user limit but can only run the app once. It was running on a novell server where they flagged this file as shareable, is there any way with 2003 server to flag a file as shareable so it can be accessed more then once?

Thanks
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16396665
yah by changing that limit in the sharing tab properties. but I think your error is indicating that a file is missing for it to execute.. have you correctly placed the files it needs in the directories the program is programmed to look in?
0
 

Author Comment

by:hpeet
ID: 16396703
I have it set to maximum but only allows program to be launched from 1 workstation at a time gives a library file error, the file does exist in the correct place but once it is opened by a workstation it can't be opened from another, this is a shared file for the application to open. In novell you would flag that file as shareable.
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16396746
in Windows all files are shareable unless the program locks specific files for writing. DLL files are also locked by the operating system - which uses them to access functions.

could be this program uses a style of programming that locks the file. where is this file that is locked located?
0
 

Author Comment

by:hpeet
ID: 16396879
All the program and data file are in one directory that is shared on the server, this share is then mapped a drive letter and the application .exe is launched from the shortcut. The file that is locked has .lbi extension.
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16397310
ok this should be an easy solution. And the one you wanted. you only wanted 1 person from a company to access the file.

1 - make copies of the program and all of its files in separate (companyname) folders (20 of em right ---->>  20 times)

2 - share each folder with max user limit of 1 (giving access only to the accounts/people in the company of that company folder)

3 - MAP shortcuts to the program onto the desktops of the end user of their respective company.

This should only allow 1 person max from the company to access the program in their company folder.
0
 

Author Comment

by:hpeet
ID: 16397356
Thanks I will give that a try. Thanks for all your assistance.
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16448175
Hpeet,

were you successful ?
0
 
LVL 12

Accepted Solution

by:
Craig_200X earned 2000 total points
ID: 16729444
Can I request points for this as my solution should have worked for him?

thanx

Craig
0
 
LVL 12

Expert Comment

by:Craig_200X
ID: 16739209
Thank you Hpeet!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question