Re: Lock the folder(s) by coding

From: Robert Moir (bofh_at_mvps.org)
Date: 04/27/03


Date: Sun, 27 Apr 2003 11:48:29 +0100


session wrote:
> I'm wondering how to lock some certain fokders by coding
> in VB .NET 2003 (To lock Windows folder(s) by assigning
> passwords for the folders to prevent the guests from
> entering or changing the contents or files in the folders
> such as system folder C:\WINDOWS)
>
> Does somebody know how to?

I'm not sure what you mean. Windows NT and it's successors (Win 2000, Win
XP, Win 2003) have the ability to secure a directory using NTFS access
rights to keep out unauthorised users. Some versions of these systems also
allow folders and files to be encrypted. These are operating system
functions and you might well be able to manipulate them from within a
program (ask on a programming newsgroup for details of how exactly) but I
don't think you can do much else - there is no facility in windows to
password protect a folder, and if you managed to write a program to do that
all i have to do is hit ctrl-alt-del, do an "end task" on your program, and
i've beaten it.

-- 
-- 
Rob Moir
Microsoft MVP for Windows / Security
www.robertmoir.co.uk


Relevant Pages

  • Re: Passwords on folders
    ... Forget about passwords on folders. ... Use passwords on individual profiles. ... Then Windows XP Home: ... "Thomas Anderson" wrote in message ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Assigning Permissions to Shared Folders
    ... That is not supported in Windows NT/2000/XP. ... the same names and passwords, and keep those passwords in sync. ... > These PC's are on a network and not everyone on that> network should have access to 2 particular PC's shared> folders but some poeple need access. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: privacy from previous searches
    ... > folders." ... However, when entering the next search here, ... If you're running on Windows XP or later you can go to "Change ... Use of included script samples are subject to the terms ...
    (microsoft.public.security)
  • How can you access private folders in another drive
    ... I had a problem with my "windows xp" and sent it to the ... shop i got it from. ... but when it was working befor I set one my folders to ... acces" and there is no option for entering a password. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Shaping files from and xp drive
    ... the firles and folders are ther but when I try and move them or open them I ... Windows XP doesn't have passwords for files. ... How to take ownership of a file or folder in Windows XP ... Please post any reply as a follow-up message in the news group ...
    (microsoft.public.windows.vista.networking_sharing)