Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling the Read Only Check Box in Explorer Properties 1

Status
Not open for further replies.

stephenk

Programmer
Mar 12, 2001
21
AU
If I set a file to read only, a user can go to explorer and within the properties dialog box, un-check the read only property.

Is there any way using VB, that I can disable the ability to change this property on particular files? i.e. disable the Read Only Check Box for one specific file.
 
It's possible, but very difficult to do, and I'm not sure VB could actually do it. You'd have to create an application that gets loaded at Windows startup and registers itself as a file system extension, and then it has to sit and "listen" for the user to activate the file's Properties sheet.

Something that would be much easier is to simply turn off the read-only attribute before you open the file, or maybe just test for it and scold the user if it's on. You can use GetAttr to test the file attributes, and SetAttr to change them. Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top