Blocking directory access keeping file access from program

July 9, 2012 at 14:29:06
Specs: Windows 7
I'm setting up an application that manages reading certain docs using a viewer

I need to avoid users from opening the directory where these docs lie so that they can´t locate and copy them, thus they would be compelled to access them only through the designated viewer.

How can this be done via a vbs script ?

See More: Blocking directory access keeping file access from program

Report •

July 9, 2012 at 14:52:24
Anything a user's program can do, a user can do.

One option would be to create a client/server setup, where after validation, the server retrieves and sends the data to the client. This needs to be done with a real programming language (not VBS).

Another option is to deny "List folder" to the folder holding the documents. This will prevent enumeration of the folder, and if done correctly, allows access to the files, assuming you know the name. The down side? Your script needs to know what the names are without looking at the files.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question