Choose Your Right Way...


  • Home
  • Tricks
  • My Other Blogs
  • Videos
  • Contact
  • About Me
  • How to set password in usb pendrive without any software?

                               http://www.ladiesgadgets.com/wp-content/uploads/2011/04/USB-Flash-Drive-Shaped-Like-a-Lock-3.jpg
    Here’s an easy way to doing this.
    steps :
    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.
     
    type:(Passwordtxt file)@echo off
    setlocal enabledelayedexpansion
    title Password
    :START
    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
    exit


    Where it says ENTERYOURPASSWORDHERE, delete that and type in your password you wish to use to open your flash drive.
    Once you’ve copied and pasted that into notepad, save as Password.bat in your flash drive
    (don’t put it under any folders)

    Then, you go START+R and type in CMD.
    Then, type in (THe drive is the letter with the colon that is assigned to your flash drive EX: J:, E:)
    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 in the long run. I use this for my flash drive, and it works great. If I made an error and it doesn’t work, post that.






    Share this post
    • Share to Facebook
    • Share to Twitter
    • Share to Google+
    • Share to Stumble Upon
    • Share to Evernote
    • Share to Blogger
    • Share to Email
    • Share to Yahoo Messenger
    • More...

    24 comments

    1. i had done every thing as per above, but when im opening it & typing the password, its showing !pass! is not the password. Try again.
      I had tried changing password than also same error occurs.

      ReplyDelete
      Replies
      1. thanks for ur comment..i missed some text..
        now i modified it..
        now it's working perfectly.

        Delete
      2. so now plz..try again..and plz..comnt about ur successful result..

        :-)

        Delete
    2. the main point is one can delete the password.bat file!!

      ReplyDelete
      Replies
      1. even anyone can delete the password.bat no one can see your files.. Flash folder can't see by anyone but folder would be there ..
        the only way to use USB after delete password.bat is format.

        Delete
      2. Harikiran Palsa9 June 2013 at 09:00

        Even after deleting password.bat or even if we dont know password,we can access Flash folder by following process:
        1.Go to Folder options (Go to Control Panel and change view by: from category to small icons and click on folder options)
        2.Navigate to view tab and under Advanced Settings find Hidden files and Folders and Select Show hidden files,folders and drives
        3.Now uncheck hide protected operating system files (Recomended) box (A box will appear warning you,ignore that and click on yes)
        4.Thats it...Now open your pendrive,you can find Flash Folder...(Works in Windows 7)

        Delete
      3. Harikiran @ bro...ur technique will worked only for system folders.it not works in this given procedure.
        once again check ur technique in usb flash drive after following my procedure.

        Delete
    3. this is a simple and fully secured process..

      ReplyDelete
    4. The password.bat(notepad file) could not save into my flash drive.when i do this the following dialog box appears.

      so what i do

      ReplyDelete
      Replies
      1. first that password.bat should be prepare and save in your system and then copy it in your flash drive.Don't directly saved it in your flash drive.

        Delete
    5. I am unable to set password when i type start+r in cmd i am getting error but when i double click the password.bat file it is asking PASS: when i type the text it replying that it is not the password how to fix this issue please let me know

      ReplyDelete
    6. It's really good and grt..
      but how to un-set passwor..?

      ReplyDelete
      Replies
      1. very simple..first open "Flash" folder by entering password.
        nxt unhidden it.then delete "password.bat" file.that's it.

        Delete
    7. if we press right click on the password.bat file and press edit button anyone can know the password. so not a good one

      ReplyDelete
    8. and if wewant to recover the file if password.bat is deleted then type
      YOURDRIVE:
      attrib Flash -s -h
      EX:
      E:
      attrib Flash -s -h
      it will unhide the given folder and give access to you without giving the password

      ReplyDelete
      Replies
      1. This comment has been removed by the author.

        Delete
    9. will it work to my computer where i set it or to further computers as well???

      ReplyDelete
    10. Great one...but when we unhidden flash folder means its totally accessible....pls look into that and its better ask password along with auto play...

      ReplyDelete
    11. it works but i cant say its great, coz anyone who uses my pendrive can edit the password.bat file and change or delete the password i put by clicking the right mouse button on that .bat file. So plz give me the solution of this problem....

      ReplyDelete
    12. hey ,i cant sent password on my pen drive ,there are showing following error:-file not found -Flash

      ReplyDelete
      Replies
      1. try it again what i said.definitely it will work.

        Delete
    13. yaaa man its works perfectly for me also thanks

      ReplyDelete
    14. this is really good man! thanks for sharing it....

      ReplyDelete

    :) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

     
    Copy Right © 2013 999ways. All Rights Reserved by Jaitrix+ . Designed by RedAtom26 .
    Posts RSSComments RSS
    Back to top