Link to home
Start Free TrialLog in
Avatar of BemboX
BemboX

asked on

Restrict use of a network directory only while a program is running in windows

My software needs to read, and sometimes write files in a common directory in the network.
We have users type A and users type B. Users type A can write and read files in that directory, Users type B must only read in that directory but not write.
Outside my software, users should not read or write in that directory.
All users belong to the same domain.
I've tried to solve this with "net use X: ... " but it remains connected when my software ends and, while it is running, users can access drive X: so a batch file (with net use, MySoftware, net use /delete) is not a solution.
By the way, my software is developed using vb.net 2010.
Any idea to solve this?
ASKER CERTIFIED SOLUTION
Avatar of Dave
Dave
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BemboX
BemboX

ASKER

Thanks a lot!!!