Tag Archives: dos command folder hide

Folder Lock

Hi folks welcome back,

In corporates and working areas people are not allowed to store unwanted files(Personal folders)

In order to maintain privacy and security i found this useful dos program in an magazine.

Simply save the following text as batch file and double click on it. A new folder named LOCKER  will be created in the

parent folder. You can use it as a brief case to store your files. If you run the batch program again,folder will be hidden.

Even if show all folder option is selected in view menu,the folder will not be shown in public. To open it again run the batch file

it prompts for a password which can be set in the code area.

——————————————————————————————

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 Lock 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 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
set/p “pass=>”
if NOT %pass%==PASSWORD 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

——————————————————————————————

 

Enjoy the privacy, Happy programming…

 

“Knowledge is for everyone it should be shared “