*

*
GET PAID CASH INSTANTLY

Friday, January 13, 2012

How to Add a Password to a .Bat File


What the programme does
What the programme does

Article provided by wikihow the wikihow manual.

Have you ever wanted to add password protection to an important file? Read on to find out how.

Steps

  1. 1
    Open notepad by going to Start> All Programs> Accessories> Notepad. Vista and 7 users can just type "notepad", without quotes, into the start menu and hit enter
    Notepad
    Notepad


  2. 2
    Copy the following code:
    • :A
    • echo enter password to activate programme
    • set/p "pass=>"
    • if NOT %pass%== passwordhere goto :FAIL
  3. 3
    At the end of your programme, you need to add:
    • :FAIL
    • echo Invalid password
    • goto :end
    • :end


Tips

  • If you are not sure how to create good .bat files see some of my other articles to find out how to make some .bat programmes
  • Change "passwordhere" to the password of your choice.


Warnings

  • This is a very basic password code. Anyone with knowledge of .bat files will still be able to access it.
  • Article provided by wikihow the wikihow manual. Please edit this article and find author credits at the original wikiHow article on How to Add a Password to a .Bat File. All content on wikiHow can be shared under a Creative Commons license.

Related Posts Plugin for WordPress, Blogger...