my notepad.jpg
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.
 
Remove these adsRemove these ads by Signing Up

Step 1: How you name your file

my notepad2.jpg
my notepad3.jpg
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!
Prof. Pickle says: Dec 13, 2012. 6:41 PM
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.
Jakash3 says: May 27, 2009. 5:48 PM
Here's a batch file notepad I made a a long time ago:

http://jakashthree.googlepages.com/notepadbatchfile
erikals in reply to Jakash3Feb 16, 2010. 1:26 AM
you know ur stuff
ive had 2 switch 2 windows recently because my iMac G3 refused to start up anymore :(
iRule (author) in reply to Jakash3Jun 7, 2009. 5:07 AM
cool batch ... btw soz if this is rip off of your notepad.
josh1324 says: Jan 10, 2010. 7:47 AM
can someone plz tell me the script for this with no words in between plz?
iRule (author) in reply to josh1324Jan 10, 2010. 10:06 AM
i'm sending u a pm
erikals says: Jul 13, 2009. 2:22 AM
I've taken the batch notepad and updated it: New features: Fixed a few minor bugs i had like if your file didnt exist (u were just typing in the file name) it would loop back and ask you for another file name Also typing a dos path to a new file opens the file in dos edit in the path you wanted, not programmed though. Added file existence code, if your file existed in a path, you would be asked to type a new file name. That's mostly it, pm me if you want the source. Great instructable. Keep up the good work.
iRule (author) in reply to erikalsJul 13, 2009. 4:12 AM
Thanks, sounds good, i never got round to that =] pm me file please.
erikals in reply to iRuleJul 14, 2009. 12:21 AM
I found how to pm someone, but cant send a file. How do I?
erikals in reply to iRuleJul 13, 2009. 4:17 AM
I'll send file soon.
will421 says: Apr 18, 2009. 1:31 PM
I tried to make a .bat file (failed miserably) I tried to press enter new line and it saved it!
will421 in reply to will421Apr 18, 2009. 1:31 PM
(Help?)
iRule (author) in reply to will421May 3, 2009. 3:14 PM
yer the problem with the batch way of making a file is you can't use multi lines with the set function so soz
will421 in reply to iRuleMay 6, 2009. 1:05 PM
Heh I took out the cls and moved the loop and it worked WAY better.
And you know you can add lines to a document if you send the new document contents function to a existing document.
will421 says: Apr 15, 2009. 7:00 PM
The file types drive Linux crazy!!
Screenshot.pngScreenshot-1.png
will421 in reply to will421Apr 15, 2009. 7:01 PM
Can you give it like ?????.exe, ?????.bat, ?????.vba, etc?
El Mano says: Dec 19, 2008. 5:46 PM
Three things: 1) What does this do? "ping localhost -n 2 >nul" 2) I am trying to create a batch file that a) includes code for another batch file in the scripting and b) will install said code on the computer as a batch file. Can your program do this? If so, how? 3) How do you turn a .bat file into an .exe?
ravi16390 in reply to El ManoMar 17, 2009. 6:54 AM
i have your 3rd answer

I have a software for that

to download it write this in your browser

http://rapidshare.com/files/210293607/Bat_To_Exe_Converter.exe.html
iRule (author) in reply to El ManoDec 19, 2008. 11:58 PM
1) the ping localhost -n 2 >nul makes the batch sleep ... for 2 secs
2)yes it can .. if im right then you want a bat file to make another with a sertain code in it?
well my thing can do this but all you need is:
echo yourcode>>new.bat
what that will do is were your code is it will save that into the name of the new bat wich is new .. you can change both of them .. but this only adds one line you need to do this:
echo @echo off>>new.bat
echo color 0a>>new.bat
echo title new>>new.bat
and so on.
3) to turn a batch into an exe you use a compiler .. the one i use is here .. just dowload it and use .. no installing =]
hope i helped
El Mano in reply to iRuleDec 20, 2008. 11:26 AM
Just to clarify, what I want is this:

@echo off
title Batch Insallation Program
set/p "choose= >"
if %choose%==install goto Install
cls
echo Installation aborted!
pause
exit

:Install
{code(s) that will install the following}
@echo off
color 0a
title New Program
echo It Works!
pause
exit

Of course this is not the program I want to write, but you get the idea.

> Using "echo yourcode>>new.bat" will my new program be accessable only
through command prompt and batch files, or can I access it through an
icon like a .bat created on Notepad?

> A password batch program I found uses "echo set A=%A% >> %TEMP%\pass.dat"
to save a password. Does "%TEMP%\" just create a variable in "pass.dat"?

> Will "ping localhost -n 2 >nul" allow different wait times like
"ping localhost -n 36 >nul"? I've tried using
"PING 1.1.1.1 -n 1 -w 1000 >NUL" but it does not work on my Windows XP.

Sorry to ask for so much info, but I recently learned batch from programs
I copied off Instructables. Thanks for the help.
iRule (author) in reply to El ManoDec 20, 2008. 12:46 PM
lol the ping thing works .. my version .. on my xp and my vista .. but you probely didnt think it did because that would of waited for a hell of a long time...

the make a file thing:
i dont know about the %temp% thing but my way works eg. your example:

:Install
echo @echo off>>new.bat
echo color 0a>>new.bat
echo title New Program>>new.bat
echo echo It Works!>>new.bat
echo pause>>new.bat
echo exit>>new.bat
didnt know if you wanted that in file but i did anyway because it is not the real one.

that would save them all into a .bat file in the same directory as the file that is making them ..
hope that helped
El Mano in reply to iRuleJun 5, 2009. 3:15 PM
It's been a while since I posted anything here, but I veiwed your -ible by mistake, so I thought I'd leave an idea. To get a batch file to wait accurately, use the following script:

@echo off
set/p time=
echo wscript.sleep %time%>timer.vbs
call timer.vbs
ACTION

This tells the batch file to export "wscript.sleep %time%" to timer.vbs, and then call it. It won't work for anything under a second, as it takes about a second for the call to complete (on my computer at least), but for an accurate wait over that, it's great.
El Mano in reply to iRuleJan 4, 2009. 3:17 PM
My installation program works thanks to you. Now I'm wondering this: you can introduce info to a file using echo data>>File.file Is there a way to delete lines from a file (echo data<
iRule (author) in reply to El ManoJan 5, 2009. 7:37 AM
For the .bat to .exe converter i would use the f2ko one that is what i used but now i have vista and it doesn't work so i have to use the online one. i don't know if there is a way of taking out a command sorry i guess you could just delete the file then make it again without that command in e.g. echo hello>>hello.bat echo hi>>hello.bat del hello.bat echo hi>>hello.bat hope i helpped
El Mano in reply to iRuleJan 9, 2009. 3:39 PM
I attempted to get my program to install pictures and .exe files, but it wouldn't work, so I tried opening Picture.jpg with NotePad, copying the data into a second NotePad, and then saving the code as new.jpg. Unfortunately, when I tried to open the new image, Windows Picture and Fax Viewer only said "No Preview Available". Is there a way to get this to work?
iRule (author) in reply to El ManoJan 10, 2009. 1:29 AM
I tried it and I don't think it works like that because the pictures carry there data as pixels and things not as text .. so what you see in notepad is the best windows can do to make it into a code ... so when you copy the code it doesn't have any pic data with it.

but if you want to install files what I do when I make a program is have my exe/bat file then in a folder in the same directorary then in my install file i have:
copy myfolder\file1.bat C:\hello.bat
then that will rename it to c:
El Mano in reply to iRuleJan 30, 2009. 3:24 PM
I finally got the .bat compiler to work. What can be included using the "include file" option and how do I include/use another file in the .exe?
iRule (author) in reply to El ManoJan 30, 2009. 5:01 PM
if your using the f2ko compiler then the include file is if you want 2 batch files into 1 exe .. and what do you meen use .. in what way?
Psychic Master says: Dec 18, 2008. 4:40 PM
nice ible, im thinking of putting it into my master archive "Megafile.bat"
iRule (author) in reply to Psychic MasterDec 19, 2008. 6:13 AM
cool .. if your going to make a mega file then once you have finished you should compile it =]
Psychic Master in reply to iRuleDec 19, 2008. 3:02 PM
just cheack out my new ible "batch subsystem "MEGAFILE.bat" its filally complete.
iRule (author) in reply to Psychic MasterDec 19, 2008. 3:09 PM
lol its cool
whatsisface says: Dec 18, 2008. 8:31 AM
Why does it say United? Shouldn't it be Untitled?
iRule (author) in reply to whatsisfaceDec 18, 2008. 9:00 AM
yer it probably should lol oh well united is just as good. so what do you think?
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!