My local high school sysadmin has asked me to write a simple security program that restricts a user's access to windows 98 files and folders based on thier logon names. How is this accomplished with VB6?
Perhaps I should ask more detailed questions (duh).
I would assume I'd have to find the registry key for the username currently logged on. Does anyone know what that key is?
I could then use the file and folder objects to set the properties of various files. But when one sets a file to Hidden using
filename.attributes = filename.attributes + Hidden
isn't it the same as right clicking on a file's icon, and checking the "hidden" attribute. This can be undone simply by electing to "show all files."
Is there an easier way to accomplish this by using policy files or by adding to the registry?
for this your best bet would be the policy manager that comes with windows. its on the windows cd I think. That gives you more control over everything plus its easyer
Erik
cirvam@netzero.net
Looking to learn more about Linux, Apache, PHP and others.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.