I want to understand basic from starting javascript to make any button on tool bar. I need one button for batch processing on tool bar, that will help me to do shortcut.
What you are asking about is creating an automation tool. You'll find some information about this in the articals on JavaScript Corner. This one is about creating a button for adding security to a PDF. It covers creating a button.
http://www.acrobatusers.com/tutorials/2007/10/apply_security_with_js/
You'll also find tutorials, and already written JavaScript automation tools, at www.pdfscripting.com.
Now here's the bad news, you cannot create a button that runs a batch sequence. This is not allowed:(
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script