Ok i think i know what you mean:
here, ill tell you a small sample code to right and then that should give you a pretty good understanding of how to do it:
1) Open up notepad.exe
2) Once it is open, type the following line of code:
Echo off
echo Hello World!
pause
3) Save the program as "myBatchFile.bat" onto your desktop
4) Then double click it and your good to go!
I hope I explained it better this time. If i didnt, please try to be more specific as to what exactly you need help with