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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling user access to folders

Status
Not open for further replies.

EuphonicTrash

Technical User
Nov 10, 2000
13
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top