DIGIT-ARC read-only archive · snapshot: July 23, 2026

Deny access to files in Win XP

2 posts · originally from https://geek.digit.in/community/threads/deny-access-to-files-in-win-xp.95516/

DizitalNovice
DizitalNovice Original post #1
Aug 13, 2008 at 10:05 AM
I have two queries:
1:
How can I deny access to certain files or folders in windows xp. I want some VB code or method which can prevent deletion and/or reading of certain items. Ideally, the file can be anywhere, even on a pen drive, and if I double click on it or press del, it says access denied.

2:
Can i deny access to a pen drive in a computer, in such a way that if someone wants to open it with explorer, access denied is shown, but a program on the pen drive executes and has access to the files and folders located there.

I am making a project on USB security, and that's why I need these badly.
dheeraj_kumar
Aug 13, 2008 at 5:40 PM
You need to program a driver for that, and you need to do it in c++. VB can only act as a front end, and security is something thats best explored in low-level (c++) , and not highly abstracted "easy" languages like vb. Read Windows NT file system internals by Rajeev Nagar.