Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Notepad Batch: Simple Password

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
66,114
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 5, 2008

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 off
cls
:Password
Set input=
set /p input= Password (input then press enter) :
if %input%==cheese goto YES
if not %input%==cheese goto NO

:YES

Start MSpaint.exe
Exit

:NO

Echo INCORRECT PASSWORD
goto Password

====================

MSPaint = file or program

cheese = password

^^^These can be what you want^^^

######## VERSION 2 ########

@Echo off
cls
:Password
Set input=
set /p input= Password (input then press enter) :
if %input%==cheese goto YES
if not %input%==cheese goto NO1

:YES

Start MSpaint.exe
Exit

:NO1

Echo INCORRECT PASSWORD
Set input=
set /p input= Password (input then press enter) :
if %input%==cheese goto YES
if not %input%==cheese goto NO2

:NO2

Echo INCORRECT PASSWORD
Set input=
set /p input= Password (input then press enter) :
if %input%==cheese goto YES
if not %input%==cheese goto NO3

:NO3

Echo INCORRECT PASSWORD
Pause
Echo WINDOW WILL NOW CLOSE
Pause
Exit

  • likes, 18 dislikes

Link to this comment:

Share to:
see all

All Comments (314)

Sign In or Sign Up now to post a comment!
  • YAY it worked

  • @thebeanokid cls clears the screen idk why he choose to do that in the beginning because its not needed

  • that should work until someone right clicks and left clicks "Edit"

  • Thanks! I've been looking for this almost everwhere on the internet. This is awesome.

  • what does cls do? and nice music by the way!

  • Hmm .. You can also just click on X or just put the enter button ...

    But it can be fun

  • Thanks mannnnn :) and FOR open NOTEPAD : @Echo off cls :Password Set input= set /p input= Password (input then press enter) : if %input%==password goto YES if not %input%==password goto NO :YES Start notepad.exe Exit :NO Echo INCORRECT PASSWORD goto Password
  • what is the name of this song?

  • @ghostCAM45 Don't type MS in front of it :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more