I want to add a button to Win Exp. toolbar and run a script file with the button. How can I do it in Delphi? Or may be Win API?
Yes, all you need is to write a toolbar for Explorer :). There are a lot of articles about implementation of the toolbar:
one
two
three
four (in delphi)