Set Password In Usb Pendrive Without Any Software
Set Password In Usb Pendrive Without Any Software
Today i'll show here how to set password on USB/Pendrive with out any software.
Lock on usb helps us in many ways coz if we lost our usb than password on it helps us to prevent Data leaking.
So password on flash drive is necessary.
So here is a simple steps to Lock your usb.
1. Go to the flash drive, and put everything in one folder titled Flash
2.On a computer, open notepad (Start+R and type in ‘notepad’)
3.copy the below code and paste it in notepad docement.
setlocal enabledelayedexpansion
title Password
cls
echo Please Enter password…
echo.
set /p pass=Pass:
if /i ‘!pass!’==’ENTERYOURPASSWORDHERE’ goto next
cls
echo !pass! is not the password. Try again.
pause
goto START
:next
if exist D:/Flash (
set Jbe=D
)
if exist E:/Flash (
set Jbe=E
)
if exist F:/Flash (
set Jbe=F
)
if exist G:/Flash (
set Jbe=G
)
if exist H:/Flash (
set Jbe=H
)
if exist I:/Flash (
set Jbe=I
)
if exist J:/Flash (
set Jbe=J
)
if exist K:/Flash (
set Jbe=K
)
if exist L:/Flash (
set Jbe=L
)
if exist M:/Flash (
set Jbe=M
)
%Jbe%:
start explorer.exe Flash || goto ERROR
exit
:ERROR
cls
echo There was an error opening the file. Would you like
echo to try again???
echo.
set /p jam=Yes or No:
if /i ‘%jam%’==’yes’ goto next
if /i ‘%jam%’==’no’ goto seeya
cls
if not defined jam goto ERROR
echo %jam% is an invalid option. Try again.
pause
goto ERROR
:seeya
Cls
echo Well, see ya!
ping -n 2 127.0.0.1>nul
In password field set your desired password.
1-Once you’ve copied and pasted that into notepad, save as Password.bat in your flash drive
(don’t put it under any folders)
2-Press START+R and type in CMD.
3-Then, type in (THe drive is the letter with the colon that is assigned to your flash drive.
YOURDRIVE:
attrib Flash +s +h
EX:
E:
attrib Flash +s +h
Now, you need to put in the password to open your files.
I know it’s a long process, but you’ll appreciate this.
Set Password In Usb Pendrive Without Any Software
0 comments:
Post a Comment