Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8551007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:05:49+00:00 2026-06-11T14:05:49+00:00

I have used the script from batch file which asks for username/password + registration

  • 0

I have used the script from “batch file which asks for username/password + registration” (topic already in stackoverflow)… here’s my question: Is there any way that i could add a lockout to a batch-file or execute a shutdown command after 5 incorrect attempts? (the timeout at the bottom is for 24 hours)
Example Situation:
Username: bobTESTattempt1
Password: 1234
[enter]
Password is incorrect 4 attempts remaining!

(the next 3 attempts are used)

Username: bobTestattempt5
Password 123342
[enter]
Password is incorrect 0 attempts remaining!
[enter]

ACCOUNT LOCKED OUT
TIMEOUT 86400

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:05:51+00:00Added an answer on June 11, 2026 at 2:05 pm

    Here you go

    @echo off
    set counter=5
    :CREDS
    cls
    if %counter% equ 0 goto :LOCKOUT
    if %counter% lss 5 echo Password incorrect, %counter% attempts left
    set /p un=Enter your username:
    set /p pw=Enter your password:
    if %un%==correctusername (
    if %pw%==correctpassword goto :ALLOK
    )
    goto :WRONG
    
    :WRONG
    set /a counter-=1
    goto :CREDS
    
    :ALLOK
    echo Creds ok, do whatever
    pause >nul
    exit >nul
    
    :LOCKOUT
    echo ACCOUNT LOCKED OUT TIMEOUT 86400
    timeout /t 86400
    goto :CREDS
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tweaked this script that I used from JqueryUi and I have a problem.
This is my script which i have used to paginate ,,The datas are restricted
I have purchased a dynamic pageflip script from http://pageflip.hu/ . Has anyone used it
I have used this script which i found in the official simple html dom
I used the following script from here JQUERY Select Extensions to check for the
I have to remove .. character from a file in Bash script. Example: I
I have used scrolling script from this site. http://blog.waiyanlin.net/example/jquery/flyingtext.html . I need the animation
I am on Windows 7 Enterprise and calling a jar from batch file which
I have used the a jquery script that is used to upload files: http://aquantum-demo.appspot.com/file-upload
I have used coin slider which is extracted from this site http://workshop.rs/projects/coin-slider/ . It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.