loading

Hey Everyone! I'm BatchBum and I make batch files. This is my first Instructable on this account so I've done Instructables before. Today I will show you a really cool batch script I made called Memory Notes. It's kinda like Windows Sticky Notes. P.S. I bolded some sentences just so you wouldn't get confused what are commands or not.

Step 1: Runthrough

Before we begin I would like to tell you we are using c# programming and I would like to show you some common commands.

@echo off: Turns off that C:\Users\Username\ junk.

cls: Clears the page. (Keeps it nice and neat.)

echo.: Just spacing so your writing doesn't jet all cramped together.

echo: Put this be for any text you want to write.(e.g. echo Hello Everyone!)

pause: Makes the file say Press any key to continue... And it does make you.

exit: This is pretty self explanatory, but exits out of the batch script.

set /p WHATEVER: Just a choice command, except WHATEVER is not a command it is just in place for another of the many commands.

if: Another command for choice but it is used in set /p ---.

•: This isn't really a command but a makes a single beep for every bullet point.

color: Changes the color of background or text.

timeout: A timer that counts down an amount of numbers you set.

Step 2: Notepad

First open notepad this will work on Windows XP, 7, or 8. No promises with Windows 98, 95, or older.

Step 3: Beginning Commands

Start by typing:

@echo off

cls

Most people just use @echo off but it is good to add the cls.

After that type:

color E0

E0 Will make the background yellow and the text black. For a full list of colors type "color 456" With out the "" In Command Prompt.

Step 4: More Advanced Commands

Now you should have:

@echo off

cls

color E0

After you finish that add:

title MEMORY NOTES

echo.

echo !WARNING! Do not press Enter until you are done with your notes.

echo.

So put that together and you should have:

@echo off

cls

color E0

title MEMORY NOTES

echo.

echo !WARNING! Do not press Enter until you are done with your notes.

echo.

Step 5: Note Commands

To enable the note writing type:

pause

cls

set /p name=

pause

cls

echo.

echo Do you want to delete? [1=YES] [2=NO]

echo.

set /p variable=

if %variable% equ 1 goto 1

if %variable% neq 1 goto 2

:1

:3

cls

color A

echo.

echo DELETING AND EXITING IN...

timeout 5

exit

Add that to the bottom. Make sure to ALWAYS enter after every command. You should now have....

@echo off
cls
color E0
title MEMORY NOTES
echo.
echo !WARNING! Do not press Enter until you are done with your notes.
echo.

pause

cls
set /p name=
pause

cls
echo.
echo Do you want to delete? [1=YES] [2=NO]
echo.
set /p variable=
if %variable% equ 1 goto 1
if %variable% neq 1 goto 2
:1

:3
cls
color A
echo.
echo DELETING AND EXITING IN...
timeout 5
exit

Step 6: Finishing

So the commands are getting a little longer but we are almost done. Add:

:2

cls

color E0

echo.

echo %name%

echo.

pause

cls

echo.

echo Get ready for your note to be deleted!

echo.

timeout 3

goto 3

Add that to the bottom and you should be done! Make sure yours looks like below.

@echo off
cls
color E0
title MEMORY NOTES
echo.
echo !WARNING! Do not press Enter until you are done with your notes.
echo.
pause

cls
set /p name=
pause

cls
echo.
echo Do you want to delete? [1=YES] [2=NO]
echo.
set /p variable=
if %variable% equ 1 goto 1
if %variable% neq 1 goto 2
:1
:3
cls
color A
echo.
echo DELETING AND EXITING IN...
timeout 5
exit

:2
cls
color E0
echo.
echo %name%
echo.
pause
cls
echo.
echo Get ready for your note to be deleted!
echo.
timeout 3
goto 3

Step 7: SAVE!!!

Save your file as memnotes.bat DO NOT FORGET TO PUT .bat

.bat Means to open it in a batch file.

Step 8: Pictures

Since I can't up load a .bat document I will show you some pictures of how it should look.

So remember this is supposed to be like Sticky Notes so when you write your note just Minimize it.

But if you want to delete it press enter than 1. (Like it says)

THANKS!

Thanks!
Awesome, this is inspiring
Thanks, I thought it was possible to do something like that but I got it now!
to make the command simple, only pay attention to -n 2 &gt; nul <br>the 2 can be any number, making 1 half a second :) if you need other help fell free to ask me a question :)
tip: when using the exiting in...<br> type this:<br>cls<br>echo Exiting in 5<br>ping local host -n 2 &gt; nul<br>cls<br>echo Exiting in 4<br>ping local host -n 2 &gt; nul<br>cls<br>echo Exiting in 3<br>ping local host -n 2 &gt; nul<br>cls<br>echo Exiting in 2<br>ping local host -n 2 &gt; nul<br>cls<br>echo Exiting in 1<br>ping local host -n 4 &gt; nul<br>cls<br><br><br><br>
<p>Thank You! I use timeout because I find that command really confusing, but I will learn to use it.</p>

About This Instructable

689views

8favorites

Bio: I love to be outside but when I'm not I'm programming. Please like and comment!
More by BatchBum:Batch Favorite Website Batch Memory Notes Batch Secret "Newspaper" 
Add instructable to: