Subscribe:
    Subscribe Twitter Facebook

    Sunday, December 25, 2011

    Protect Ur folders in windows using a Small Script

    we're going to make a hidden folder, Folder will be hidden by a little program, when you open this program, you should type the correct password , so your folder will be seen. 


    OK, open any text editor (in fact notepad is the easiest way) and write in it :



    cls
    @ECHO OFF
    title Folder Locker
    if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
    if NOT EXIST Locker goto MDLOCKER
    :CONFIRM
    echo Enter password to lock folder or for cancel press N
    set/p "cho=>"
    if %cho%==XXXX goto LOCK
    if %cho%==n goto END
    if %cho%==N goto END
    echo Invalid choice.
    goto CONFIRM
    :LOCK
    ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    echo Folder locked
    goto End
    :UNLOCK
    echo Enter password to Unlock folder
    set/p "pass=>"
    if NOT %pass%==XXXX goto FAIL
    attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
    ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
    echo Folder Unlocked successfully
    goto End
    :FAIL
    echo Invalid password
    goto end
    :MDLOCKER
    md Locker
    echo Locker created successfully
    goto End
    :End






    NOW ,replace the XXXX by the password you want 
    save it finally Folder_protect.bat

    0 comments:

    Post a Comment

    Bidvertiser