Build a Password Protection Program with the Choice Command!

Tags:
Batch Chocie Cmd Command Files Notepad Password PCcms Prompt Technology
dilp91
  • By: dilp91
  • Subscribers: 17
  • Updated: 23-Jan-09
  • Videos: 96
  • International Basic English
  • Comments: 0
  • Views: 904
  • Added: 18-Oct-08

Learn a cool new command for batch files, and use it to password protect files, and more!

Choice Command:

set input=
set /p input=
if %input%==

Password Protector:

@echo off
    B
cls
echo.-------------------------
echo Please Type your password
echo.-------------------------
set input=
set /p input= password:
if %input%==(((password))) goto A
cls
echo Inccorect password!
pause
Goto B
    A
cls
echo password correct!
pause
(((whatever happens when the correct password is entered)))
exit

  1. Categories: How To
  2. Favorite On: whiteknight2721 geekman77
Comments on

Build a Password Protection Program with the Choice Command!

0 Comments | Be the first to comment