File locking on 2003 Server Share

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
hpeetAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Craig_200XCommented:
If you share the folder, on the share properties allow 1 person on the user limit. That should do it.
0
Craig_200XCommented:
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
hpeetAuthor Commented:
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
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Craig_200XCommented:
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
hpeetAuthor Commented:
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
Craig_200XCommented:
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
hpeetAuthor Commented:
Thanks I will give that a try!
0
hpeetAuthor Commented:
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
Craig_200XCommented:
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
hpeetAuthor Commented:
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
Craig_200XCommented:
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
hpeetAuthor Commented:
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
Craig_200XCommented:
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
hpeetAuthor Commented:
Thanks I will give that a try. Thanks for all your assistance.
0
Craig_200XCommented:
Hpeet,

were you successful ?
0
Craig_200XCommented:
Can I request points for this as my solution should have worked for him?

thanx

Craig
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Craig_200XCommented:
Thank you Hpeet!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.