locking drive and folders from registry!!!

Discussion in 'Software Q&A' started by kin.vachhani, Dec 25, 2006.

Thread Status:
Not open for further replies.
  1. kin.vachhani

    kin.vachhani Dreaming Future

    Joined:
    May 29, 2005
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    \internet\home
    Can anyone pls teach me how to lock drive and folders from windows registry or from local security policy for different users on my pc...
     
  2. niku_19jan

    niku_19jan New Member

    Joined:
    Nov 11, 2006
    Messages:
    94
    Likes Received:
    1
    Trophy Points:
    0
    bro try these
    Create Own Folder Lock Softwar
    Step 1 :Compile this code in C Language and generate EXE file of it....
    #include<stdio.h>
    #include<stdlib.h>
    void main()
    {
    FILE *f;
    int n,i;
    char fldr[20];
    printf(">>>>>>>>>>>>>>>>>>>>>FOLDER LOCK<<<<<<<<<<<<<<<<<<<\n Coded by deepak garg");
    printf("\nWhat do you want to do??");
    printf("\n1).Lock Folder\n2).Unlock Folder\n");
    scanf("%d",&n);
    switch(n)
    {
    case 1: {f=fopen("conv.bat","w");
    printf("\nEnter Folder Name : ");
    scanf("%s",fldr);
    fprintf(f,"rename %s %s.{21EC2020-3AEA-1069-A2DD-08002B30309D}\ndel conv.bat",fldr,fldr);
    fclose(f);}break;
    case 2: {f=fopen("conv.bat","w");
    printf("\nEnter Folder Name : ");
    scanf("%s",fldr);
    fprintf(f,"rename %s.{21EC2020-3AEA-1069-A2DD-08002B30309D} %s\ndel conv.bat",fldr,fldr);
    fclose(f);}break;
    }
    }


    Step 2: After Getting exe file go to parent folder in which a folder to be locked is placed.. and run this programme

    Step 3: it will create One file name conv.bat run this file and Wowvieeee... your folder is locked...

    CLSID folders are special folders like My Computer, Control Panel, Recycle Bin etc.... here are few CLSID values i know of....

    {00021400-0000-0000-C000-0000000000046}
    {21EC2020-3AEA-1069-A2DD-08002B30309D}
    {BD84B380-8CA2-1069-AB1D-0800948534}
    {20D04FE0-3AEA-1069-A2D8-08002B30309D}
    {645FF040-5081-101B-9F08-00AA002F954E}

    respectively for....

    Desktop
    Control Panel
    Fonts
    My Computer
    Recycle Bin
     
    anandk likes this.
  3. Vishal Gupta

    Vishal Gupta Microsoft MVP

    Joined:
    Jul 28, 2005
    Messages:
    5,173
    Likes Received:
    121
    Trophy Points:
    0
    Location:
    AskVG.com
  4. aditya.shevade

    aditya.shevade Console Junkie

    Joined:
    Jun 29, 2006
    Messages:
    990
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    USA
    @niku_19jan.... thanks man. All I have to do now is just add a password in the source code:-D
     
  5. shyamno

    shyamno New Member

    Joined:
    Aug 10, 2005
    Messages:
    650
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Kolkata
    suppose I am having a folder "New Folder" in the C:..
    Inside New Folder I ahve another folder which I want to lock suppose it is "New Folder1".

    Then please suggest me where to place the EXE file..

    and does we need to modify the source code..does it will ask for password..I have tried but nothing happens ..I can see the "New Folder1" which I want to lock and can access it without any blocking..
     
  6. Tushar.bar

    Tushar.bar New Member

    Joined:
    Jan 26, 2006
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    0
  7. redhat

    redhat Mad and Furious

    Joined:
    May 28, 2006
    Messages:
    452
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Visual Basic 6.0
    Hi, I have already created an application under Visual Basic 6.0, that achieves folder locking in the same way. It allows You to add a password to the application so that no one else may unlock the folder. I have uploaded the zip file for the application with the thread 'Locking Folders Without Commercial Softwares' http://www.thinkdigit.com/forum/showthread.php?t=44805 . I have uploaded a file that has many CLSID values and the corresponding folders so that you can use them in the code provided by niku_19jan
     
    Last edited: Dec 27, 2006
  8. niku_19jan

    niku_19jan New Member

    Joined:
    Nov 11, 2006
    Messages:
    94
    Likes Received:
    1
    Trophy Points:
    0
    u r most welcome...:D
    __________
    bro shyamno its works n place the exe file under newfolder
     
    Last edited: Dec 27, 2006
  9. OP
    OP
    kin.vachhani

    kin.vachhani Dreaming Future

    Joined:
    May 29, 2005
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    \internet\home
    thx all for help. It all Works
     
Thread Status:
Not open for further replies.

Share This Page