Simple Batchfile Login System With Loading Bar

About: Hello guys, Here we are for sharing our knowledge. We are trying to share it to every person.

Intro: Simple Batchfile Login System With Loading Bar

Here we are sharing Batch file for login system with loading bar.
We will show you code and also show you how to use.
You can also visit our blog for more batch file codes.
FFLocker 1.0 :http://errorcode401.blogspot.in/2013/06/FFlocker-1.0.html
RarFile Password Cracker :http://errorcode401.blogspot.in/2013/06/Hack-Rar-file-password.html
Collection of Computer Tricks :https://www.instructables.com/id/Collection-of-Computer-Tricks/

Now Let's Start to create this batch file login system.

Step 1: Create File

Open Notepad [Start >> Run >> Type 'Notepad' >> Enter]
Copy the following codes in notepad and save it as loginsys.bat

REM Codes from http://errorcode401.blogspot.in
REM ******************************************
@echo off
color B
mode con: cols=51 lines=18
IF NOT EXIST "c:\uname.txt" goto SIGNUP
IF NOT EXIST "c:\password.txt" goto SIGNUP
goto LOGIN

:SIGNUP
title SignUp
cls
echo -------------------------------------------------
echo                     SignUp
echo -------------------------------------------------
echo.
set/p "unamesu=Enter Username : "
set/p "passsu=Enter Password : "
echo.
echo.
IF ["%unamesu%"] == [""] goto SIGNUPERROR
IF ["%passsu%"] ==[""] goto SIGNUPERROR
goto CREATEACC

:SIGNUPERROR
echo -------------------------------------------------
echo                     Error
echo -------------------------------------------------
echo Invalid Username or password
pause
goto SIGNUP

:CREATEACC
echo %unamesu% >> C:\uname.txt
echo %passsu% >> C:\password.txt
attrib "C:\uname.txt" +s +h
attrib "C:\password.txt" +s +h
IF EXIST "C:\Program Files\Mozilla Firefox\firefox.exe" goto FIREFOX
goto IE

:FIREFOX
start firefox.exe "http://errorcode401.blogspot.in/2013/06/FFlocker-1.0.html"
goto LOGIN

:IE
start iexplore "http://errorcode401.blogspot.in/2013/06/FFlocker-1.0.html"
goto LOGIN

:LOGIN
set/p uname= < C:\uname.txt
set/p pass=< C:\password.txt
title Login
cls
echo -------------------------------------------------
echo                       Login
echo -------------------------------------------------
echo.
echo.
set/p "unamel=_               Username : "
set/p "passwordl=_               Password : "
echo.
IF "%unamel%"=="" goto LOGINERROR
IF "%passwordl"=="" goto LOGINERROR
IF NOT %unamel%==%uname% goto LOGINERROR
IF NOT %passwordl%==%pass% goto LOGINERROR
goto LOADING

:LOGINERROR
echo -------------------------------------------------
echo                     Error
echo -------------------------------------------------
echo Invalid Username or password
pause
goto LOGIN


:LOADING
title Loading...
set load=%load%!!!!!!!
cls
echo -------------------------------------------------
echo                       Login
echo -------------------------------------------------
echo.
echo.
echo                 Username : %unamel%
echo                 Password : %passwordl%
echo.
echo.
echo          Logging in...
echo          ===================================
echo          %load%
echo          ===================================
echo.                              Please Wait...
echo.
ping localhost -n 2 >nul
set/a loadnum=%loadnum% +1
if %loadnum%==5 goto DONE
goto LOADING

:DONE
title Done
cls
echo -------------------------------------------------
echo                       Done
echo -------------------------------------------------
echo.
echo               #
echo             #
echo     #     #            Login Successfully
echo      #  #
echo       #
echo.
echo.
echo -------------------------------------------------
pause
goto THANKS

:THANKS
title Thanks for using
cls
echo -------------------------------------------------
echo                       Thnaks
echo -------------------------------------------------
echo.
echo    Thanks for using our codes.
echo    Blog    : http://errorcode401.blogspot.in
echo    FB      : https://www.facebook.com/errorcode401
echo    Twitter : http://www.twitter.com/errorcode401
echo.
echo -------------------------------------------------
pause
exit

REM ******************************************
REM Codes from http://errorcode401.blogspot.in

Step 2: SignUp

Now Open that file by double click.
Enter your username and password which you want then hit enter.

Your detail has been stored in C drive in two files name with "uname.txt" and "password.txt" which is hidden.

Step 3: Login

After that you will see one Login screen.
Enter your username and password which was set by you.
If you will enter wrong password then login successful screen will not appear.

Step 4: Done

If you did each step correct then you will see this window. you can replace it with your program/code which you want.

Step 5: Thanks

Thanks for check my Instructable.

If you want more than this then like our facebook page and follow us on twitter.
Facebook : https://www.facebook.com/errorcode401
Twitter : http://www.twitter.com/errorcode401

Share

    Recommendations

    • Plastics Contest

      Plastics Contest
    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Audio Contest 2018

      Audio Contest 2018

    11 Discussions

    0
    None
    CarsonV

    3 years ago on Introduction

    I love this program. I even implanted it into one of my other Batch files I'm working on and I modified the code so it also fits my Batch Program. Thanks, errorcode401.

    0
    None

    What if you want multiple accounts without transferring to another computer or erasing data :P

    This code is nice for my program. Because it's about folder lockdown or something. But what's a REM?