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

Password Usb

This document contains a batch script that locks a drive and prompts the user for a password to unlock it. The script checks the password input and allows access or repeats the prompt if incorrect, tracking failed attempts.

Uploaded by

Punita Devi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Password Usb

This document contains a batch script that locks a drive and prompts the user for a password to unlock it. The script checks the password input and allows access or repeats the prompt if incorrect, tracking failed attempts.

Uploaded by

Punita Devi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

@echo off

title Drive Locked


color 2
:0
echo========================= & echo Enter Password To Unlock &
echo ========================
set /p password=
if %password%== YOURPASSWORDHERE goto :1
echo Wrong Password
pause
goto : 0
:1
echo Success!
Pause
(START S:\Lock)

@echo off
title Drive Locked
color 2
set c=0
:0
if %c% GEQ 3 exit
echo========================= & echo Enter Password To Unlock &
echo ========================
set /p password=
if %password%==YOURPASSWORDHERE goto :1
echo Wrong Password
echo:
set /A c=c+1
goto :0
:1
echo Success!
(START S:\Lock)

You might also like