Batch Notepad

17,034

2

39

Posted

Introduction: Batch Notepad

I made this notepad thing because .. well. I had nothing to do.
i know you can get the dos editing thing but i still wanted to make my own version.

all it does is lets you name and make a file.
thats about it lol.

please tell me if you find any bugs..

also ask :
erikals
For a more up to date bug free version of this. . . . Thanks erikals =D

And please comment.

Step 1: How You Name Your File

The first thing you can do is name it .. so I'll so you how that works...

it asks you to name your file eg. hello.txt , .bat whatever and then once you have named it lets say .. hello.txt it changes the title to 'hello.txt - iRule Notepad' and it also changes the bit thats always at the top .. so now when you edit the text it will save it as 'hello.txt'

HOW IT WORKS:
all i used to so this was:

set /p name=">"
title %name% - iRule Notepad

and thats all it took!

Step 2: Adding Text

The next thing you can do it add text ... to do this you just type '123loltestwhatever' whatever you want and it will make a file called 'whatever you named it' then to add a new line you press enter as many times as you want although you cannot use the symbols < > | because they are used for batch commands it is annoying when say your making a .bat file and you want 'echo 123>123.bat' but you will have to find a way around that.

HOW IT WORKS:
to make it save all it took was one like of coding:

echo %content%>>%name%

and to write the content all it was:
set /p content=">"

Step 3: Edit a Document That Already Exists

on the options screen when you press 0 all it does is takes you to the batch editor witch is a really rubbish editing thing but it uses batch thats why i linked to it in my notepad...

HOW IT WORKS:
all this took was:

set /p edit=">"
edit %edit%

you can download my natepad compiled as an .exe or .bat if you want to messaround with it =]
!! REMEMBER !!
Take out the .itsa so it looks like iRule Notepad.exe or .batnot .itsa

Share

Recommendations

  • Minecraft Challenge 2018

    Minecraft Challenge 2018
  • Sew Warm Contest 2018

    Sew Warm Contest 2018
  • Gluten Free Challenge

    Gluten Free Challenge
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

39 Comments

How do you set your text color to that bright green?

i only know

color3

it won't allow me to run the .exe version on my computer!

Its running: Windows 10

Could help?

can you make a batch file that can find text in notepad and copy it to another new notepad

You realise you can do this ENTIRE thing in 10 lines?
Next time try using:
Copy con %file%
And tell the user to end the editing session by "Ctrl + Z"

The file types drive Linux crazy!!

Screenshot.pngScreenshot-1.png

Can you give it like ?????.exe, ?????.bat, ?????.vba, etc?

Here's the copy of all the code (NOTE this message is 3 years late!!!!)

@echo off
color 0a
set name=United
title %name% - iRule Notepads
:options
cls
echo ________________________________________
echo.
echo iRule Notepad
echo ________________________________________
echo - %name%
echo.
echo Press 0 to edit a document that already exists.
echo Press 1 to edit the name of your document.
echo Press 2 to edit the contents of your document.
echo Press 3 for help.
echo Press 4 to exit.

set /p you=">"
if %you%==1 goto 1
if %you%==2 goto 2
if %you%==3 goto help
if %you%==4 goto 4
if %you%==0 goto 0

cls
echo *********************************
echo sorry invalid number!
echo *********************************
ping localhost -n 2 >nul
goto options

:1
cls
echo ________________________________________
echo.
echo iRule Notepad
echo ________________________________________
echo - %name%
echo.
echo Name Your Document .. eg. 'hello.txt' or 'hello.bat'
set /p name=">"
title %name% - iRule Notepad

goto options

:2
cls
echo ________________________________________
echo.
echo iRule Notepad
echo ________________________________________
echo - %name%
echo.
echo To add another line to your text press enter .. To stop editing press the big
echo red X in the corner of this screen.
echo.
echo Cannot use symbols:" > < | " lol if you use any of them 3 symbols it closes!
echo.
set /p content=">"
echo %content%>>%name%
cls
echo Save Successful!
ping localhost -n 2 >nul
goto 2

:help
cls
echo ________________________________________
echo.
echo iRule Notepad
echo ________________________________________
echo - %name%
echo.
echo If you are having trouble with iRule Notepad please pm me in instructables ...
echo Also please tell me what you think =]
echo.
pause
goto options

:4
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo __Made by iRule_________________________
echo.
echo iRule Notepad
echo ________________________________________
echo Please tell me what you think =]
ping localhost -n 5 >nul
exit

:0
cls
echo ________________________________________
echo.
echo iRule Notepad
echo ________________________________________
echo - %name%
echo.
echo Type in the name eg. 'hello.txt' or 'hello.bat'
echo The file has to be in the same directory as my notpad!
set /p edit=">"
edit %edit%
goto options

What, oh come one! As soon as I make my "Document Creator" I start seeing that everyone all ready beat me too it...

Oh well, good work.

P.S: Add more features to it.

you know ur stuff
ive had 2 switch 2 windows recently because my iMac G3 refused to start up anymore :(