Question:

Lock any folder without any software?

by  |  earlier

0 LIKES UnLike

Hi friends I know one trick for locking a folder which is as follows

cls

@ECHO OFF

title Folder Private

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303... goto UNLOCK

if NOT EXIST Private goto MDLOCKER

:CONFIRM

echo Are you sure you want to lock the folder(Y/N)

set/p "cho=>"

if %cho%==Y goto LOCK

if %cho%==y goto LOCK

if %cho%==n goto END

if %cho%==N goto END

echo Invalid choice.

goto CONFIRM

:LOCK

ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303...

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303...

echo Folder locked

goto End

:UNLOCK

echo Enter password to unlock folder

set/p "pass=>"

if NOT %pass%== password here goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303...

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303... Private

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDLOCKER

md Private

echo Private created successfully

goto End

:End

Now my problem is when we enter the password for unlocking the folder the password can be seen on the screen instead of this ******* all the passwords are actually seen as the stars as i mentioned above but using the script given above we can see the password while typing.

So are there any changes we have to do in the script If anybody knows please help me and tell me the changes please.

Thanks in advance.

 Tags:

   Report

2 ANSWERS


  1. Make some changes in the instruction below it might work...

    echo Enter password to unlock folder

    set/p "pass=>"

    if NOT %pass%== password here goto FAIL

    attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303...

    ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B303... Private


  2. you can use compressed zip folder to use

    right click on desktop

    open the compress zipped folder

    add the files you want

    right click on the folder

    click on add password

      

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.