password protected folders
nav_first.pngFirst: blog:1
Private Server Community
Edited: 05 Jun 2017 17:47 by: Slater River
Comments: 0
Tags: aqwps partner plasmily private-server shutdown slater-river
nav_prev.pngPrevious: blog:13
creating/using a carousel for your site
Edited: 14 Aug 2017 17:46 by: Slater River
Comments: 0
Tags:
nav_last.pngLast: blog:15
calling out to all programmers
Edited: 14 Sep 2017 17:33 by: Slater River
Comments: 0
Tags: apply calling css html javasript out php programmers requirements skills
nav_next.pngNext: blog:15
calling out to all programmers
Edited: 14 Sep 2017 17:33 by: Slater River
Comments: 0
Tags: apply calling css html javasript out php programmers requirements skills

Slater RiverSlater River wrote on 18 Aug 2017 17:32
Tags: batch cool-code folder password-protected

So I happened to stumble on this link and found this really cool code.

@echo off
title Folder Password v1.5
color 0a
set /a tries=3
set password=***ENTER YOUR PASSWORD HERE***
:top
echo.
echo ----------------------------------------------
echo.
echo Folder Password
echo.
echo ----------------------------------------------
echo You have %tries% attempts left.
echo Enter password
echo ----------------------------------------------
set /p pass=
if %pass%==%password% (
goto correct
)
set /a tries=%tries -1
if %tries%==0 (
goto penalty
)
cls
goto top
:penalty
echo Sorry, too many incorrect passwords, initiating shutdown.
start shutdown -s -f -t 35 -c "SHUTDOWN INITIATED"
pause
exit
:correct
cls
echo ----------------------------------------------
echo Password Accepted!
echo.
echo Opening Folder...
echo ----------------------------------------------
explorer ***ENTER FOLDER PATH HERE***
pause

Credit to the author to published this.

Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License