How To Set Password In Usb Pendrive Without Any Software



How To Set Password In USB Pendrive Without Any Software


how-to-set-password-in-usb-pendrive

Many Peoples think about that how to set password to your USB Pendrive many peoples are using some software's for protecting our USB's. So guys today i'll show here how to set password on USB/Pendrive with out any software.Lock on USB helps us in many ways 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. if you like my post so please do not forget to share my post with your friends.


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 document.
 

type:(Passwordtxt file)@echo off
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 +hEX: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.



if you can't copy this files so download this files from her




Post a Comment

Previous Post Next Post