Make Folder Secure || using Batch file ||

ComputerScienceWorld

How to Secure Folder with some simple codes.

Hello Programmers,
Today we make an interesting program    

this code will Make folders and Hide them,

Save this code as (.bat) extensions

How does the code Run???
1. When you run the code, A pop-up will show.
    those make your folder
2. Move your Files or Folder in this
3. Run it Again, and  Type Y for yes.
    Your folder will vanish.
4. If you want it back, Run again the file and Type Password...
    Default Password is 12345

codes are:

@echo off

title Folder Safe
@REM cd /d D:/ (here you can fix the location of your file)
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Safe goto MDSafe

:CONFIRM
echo Are you sure. Do you want to lock the Folder (y/n)
set /p sure=
if %sure% == Y goto LOCK
if %sure% == N goto END
if %sure% == n goto END
if %sure% == y goto LOCK
goto CONFIRM

:LOCK
ren Safe "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
cls
echo Folder Locked
echo Please Refresh Windows Explorer
timeout /t 5
goto END

:UNLOCK
echo Enter password to Unlock Folder
set /p Pass=
if NOT %pass% == 12345 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Safe
echo Folder Unlocked Successfully
goto END

:FAIL
echo Invalid password
goto END

:MDSafe
md Safe
echo Safe create Successfully
goto END

:END
exit

Screenshot of code.

CODES PIC










    





            Here are some Screenshots of the Running code.


Step 1. 









                        Step 2.









Step 3.







                            Step 4.








Do you want exe file Click Here for exe???

Comment me for the EXE file.

If you like this Post,
Please Comment and Share it.

If you have any doubt or query:

Visit to my Page:
Facebook : https://www.facebook.com/piyush.baghel.7583/
Link In : https://www.linkedin.com/in/piyush-baghel-4127aa220/