Added: Jul 5, 2008

From: bananafruitsalad

Duration: 5:0

A video showing one of the many simple things you can do with a batch file on notepad. In this video, i show you how to make a file have a password protection. It can be any file on the desktop, or basic program. If you use a file (on the desktop) You can right-click it, and go to properties, then check the 'hidden' box, so you can not open it, unless you use the password. You can also create a shortcut to the batch file, to make it look better.======================the text:@Echo offcls:PasswordSet input=set /p input= Password (input then press enter) :if %input%==cheese goto YESif not %input%==cheese goto NO:YESStart MSpaint.exeExit:NOEcho INCORRECT PASSWORDgoto Password====================MSPaint = file or programcheese = password^^^These can be what you want^^^######## VERSION 2 ########@Echo offcls:PasswordSet input=set /p input= Password (input then press enter) :if %input%==cheese goto YESif not %input%==cheese goto NO1:YESStart MSpaint.exeExit:NO1Echo INCORRECT PASSWORDSet input=set /p input= Password (input then press enter) :if %input%==cheese goto YESif not %input%==cheese goto NO2:NO2Echo INCORRECT PASSWORDSet input=set /p input= Password (input then press enter) :if %input%==cheese goto YESif not %input%==cheese goto NO3:NO3Echo INCORRECT PASSWORDPauseEcho WINDOW WILL NOW CLOSEPauseExit

Channel: Tech

Tags: bat  batch  edit  file  hack  hide  mspaint  notepad  paint  password  protect  secret  show  text  txt  type  windows 


Rating: 5.00 (12 ratings)    Views: 2791' favoriteCount='13    Comments: 27

bananafruitsalad Says:

Aug 20, 2008 - hmm... That's another good question, but one that i am not sure about the answer, I will Search the web, high and low, and see if i can figure out how to do it, then i will come back and tell you. Thanks for the great comment :)

askebengtson Says:

Aug 24, 2008 - LOOOOOOOOOOL!!!!!!!!!!!!!!!!

bananafruitsalad Says:

Aug 27, 2008 - lol?? What's funny? lol

Logo3801 Says:

Aug 30, 2008 - @Echo offcls:Password

Logo3801 Says:

Aug 30, 2008 - IGNORE MY@Echo offcls:Password

bananafruitsalad Says:

Aug 31, 2008 - what?

bananafruitsalad Says:

Aug 31, 2008 - Oh, i didn't see this, lol, okay

bananafruitsalad Says:

Aug 31, 2008 - IGNORE MYWhat?lol

blackcobra1994 Says:

Sep 5, 2008 - and can you make a passord on the whole map i just made with other programs in it ?

bananafruitsalad Says:

Sep 9, 2008 - Sorry, i am not sure what you mean :/

blackcobra1994 Says:

Sep 10, 2008 - a map with many pictograms like games music etc. and euhm why ill do this the can you to start all programs and then play my music / games..

blackcobra1994 Says:

Sep 10, 2008 - and BTW , i got Teamspeak 2 RC2 iff i want to have a password on that i most do this by Start Teamspeak 2 RC2.exe ?

bananafruitsalad Says:

Sep 10, 2008 - Oh, okay i understand. basically, all i can recommend is you remove the '*.exe' from the start menu, place it on the desktop and do what the video shows you to do, then place a shortcut to the batch in the start menu in the place of the original. that way it will be password protected. also, this means you will have to hide the '*.exe' file on the desktop. i explain the process in a previous comment i think. i hope this help but i am rubbish at explaining :/ sorry.

blackcobra1994 Says:

Sep 10, 2008 - okay , now its going to be wrong .... ill start the batch file and then ill type it wrong to test it , i closed by itself....and when i type it good it doesnt open... it says that he cant find it it only worked by mspaint...

bananafruitsalad Says:

Sep 11, 2008 - hmm.. okay, here is what i suggest. The file i told you to copy to the desktop, Right-click it and select 'Properties'Next to 'Location:' highlight all the text and copy it into your Batch file, like so:before~ Start 'file.exe'After~ Start 'C:\Documents... Desktop\file.exe'I just typed '...' so i don't have to type the whole thing, the actual text will be longer that you copy. Hopefully this will work. Also, if it is an EXE, use '.exe' but if it is a shortcut, use '.lnk'

bananafruitsalad Says:

Sep 11, 2008 - Chances are, it will be a shortcut if you got it from the start menu, so use '.LNK' in the batch, not '.EXE'I am just guessing, it could be exe, but most probably not

bananafruitsalad Says:

Sep 11, 2008 - (sorry to type so much) IF it is a shortcut, it wont say 'Location', it will say 'Target'If it says 'Target', copy the text in Quotation marks, and use that INSTEAD of 'file.lnk' or 'file.exe' in your batch file.Hope all this helps

blackcobra1994 Says:

Sep 11, 2008 - ty , now it works :P

DarthBacon Says:

Sep 12, 2008 - Is a way to Exec the Batch file You made to Exec another Bat?.. lol seems like a odd or stupied question.

bananafruitsalad Says:

Sep 13, 2008 - lol, urm... If i understand your question correctly, then yes, it is possible to execute a Batch file, with another batch file, but 100% pointless, as all the information in the 2nd batch, could just be in the first one, could it not? If this is not what you meant, sorry, just rephase it or something :) lol.

DarthBacon Says:

Sep 15, 2008 - I understand So...I have Two .bat The Password one and the Other one. what would one type next too Start Since its not a .Exe,.......yea its pointless but its something. ^_^

bananafruitsalad Says:

Sep 15, 2008 - ¦D lol, okay, so basically, where you put '.exe' you would put the extention for the batch file instead, which is '.bat'lets say they are called 'abc.bat' and 'xyz.bat''abc' is the password one, and 'xyz' is the other one. in 'abc', you would put:Start xyz.batand that should do it, so long as they are in the same folder, otherwise you will have to specify the location (explained in a comment below)¦) hope this helps

OJohnstone Says:

Sep 22, 2008 - this may be a silly question lol but.... does this mean that the only way onto paint from the video shown is the file you created and entering the password. if so... thats sweet or is paint still available if you run it or have it on your desktop ??

bananafruitsalad Says:

Sep 22, 2008 - well... it would require you to remove any shortcuts to paint and have this batch file (or shortcut to this batch file) as your only way of accessing paint. Using MSPaint was mainly for example purposes, it is just to show you what you CAN do with this simple batch layout. I hope this helped any :)

aaronpolley Says:

Oct 5, 2008 - Hello, is it possible to password a folder, say folder A what would i have to write instead of MSPaint?