Maybe you don't quite understand how a forum works. You ask a question, and when someone has time, or if they are so inclined, they will help you. If you are too lazy to at least make an effort to help yourself, don't expect us to do it for you.
In my first post, I gave you an example of how to use a script to run a command. I asked questions to try and clarify what it was you needed. I am willing to help you find resources, I am willing to help you correct programming errors, and I am willing to discuss strengths and weaknesses of various languages that you may want to use. But I am not going to provide any script for you.
There are tons of examples on the web. Exercise some initiative and look for them.
*****************
EDIT: Just thought I would share some member feedback.
QUOTE(Celticsfan)
How can such an bleep become an admin of a site? If you chose not to help people don't reply to their threads. Maybe you should give up your duties as "bleep" to others who are actually helpful you useless p***k.
So I guess that I am off your Christmas list then?