0% found this document useful (0 votes)
109 views

Create, Hide and Open Folders Using Batch File

This batch file script allows for the creation, hiding, and opening of a private folder through the use of passwords. It first checks if the private folder already exists, and if not, it creates it. It then prompts the user to hide or open the folder, requiring the password "123" to do so. If the correct password is entered, it will hide the folder by changing its name and attributes, or open it by removing those attributes. It provides feedback at each step and allows retrying if an incorrect password is entered.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views

Create, Hide and Open Folders Using Batch File

This batch file script allows for the creation, hiding, and opening of a private folder through the use of passwords. It first checks if the private folder already exists, and if not, it creates it. It then prompts the user to hide or open the folder, requiring the password "123" to do so. If the correct password is entered, it will hide the folder by changing its name and attributes, or open it by removing those attributes. It provides feedback at each step and allows retrying if an incorrect password is entered.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Create, Hide and Open Folders Using Batch File

Cls
@Echo Off
Title Private
Mode 68,09
Color 5e
if Exist Private goto ConfHide
if Exist "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto Open
if Not Exist Private goto MDPrivate
:Open
Cls
echo
===============================================================
====
echo :: Enter the Password to Open the Folder ::
echo
===============================================================
====
set/p "pass=>>>>"
@Echo Off
if Not %pass%== 123 goto Fail
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
Cls
echo
===============================================================
====
echo :: The Folder Opened Successfully .... ::
echo
===============================================================
====
Pause
Cls
goto ConfHide
:Fail
Cls
echo
===============================================================
====
echo :: Password Not Accepted!!!! ::
echo
===============================================================
====
Pause
Cls
echo
===============================================================
====
echo :: Would You Like to Try Again???? (Y/N) ::
echo
===============================================================
====
:Retry
set/p "dny=>>>>"
if %dny%==Y goto Open
if %dny%==y goto Open
if %dny%==N goto Hidden
if %dny%==n goto Hidden
Cls
echo
===============================================================
====
echo :: Press Y/y to Try Again or N/n to Exit ::
echo
===============================================================
====
goto Retry
:ConfHide
Cls
echo
===============================================================
====
echo :: Do You Want to Hide This Folder???? (Y/N) ::
echo
===============================================================
====
:Confirm
set/p "cho=>>>>"
if %cho%==Y goto Hide
if %cho%==y goto Hide
if %cho%==n goto Opened
if %cho%==N goto Opened
goto RetryHide
:Hide
Cls
echo
===============================================================
====
echo :: Enter the Password to Hide the Folder ::
echo
===============================================================
====
set/p "pass=>>>>"
@Echo Off
if Not %pass%== 123 goto Invalid
ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
:Hidden
Cls
echo
===============================================================
====
echo :: The Folder is Hidden .... ::
echo
===============================================================
====
Pause
goto End
:Invalid
Cls
echo
===============================================================
====
echo :: Password Not Accepted!!!! ::
echo
===============================================================
====
Pause
Cls
echo
===============================================================
====
echo :: Would You Like to Try Again???? (Y/N) ::
echo
===============================================================
====
set/p "cho=>>>>"
if %cho%==Y goto Hide
if %cho%==y goto Hide
if %cho%==n goto Opened
if %cho%==N goto Opened
:RetryHide
Cls
echo
===============================================================
====
echo :: Press Y/y to Hide the Folder or N/n to Keep the Folder Opened ::
echo
===============================================================
====
goto Confirm
Pause
:Opened
Cls
echo
===============================================================
====
echo :: The Folder is Not Hidden .... ::
echo
===============================================================
====
Pause
goto End
:MDPrivate
MD Private
Cls
echo
:::=============================================================::
:
echo : Folder Private Created Successfully.... :
echo
:::=============================================================::
:
Pause
goto End
:End

You might also like