Your post isn't a question but rather a vague description of what you wish you could do.
To get an answer, you need to post a very specific question, and also describe what you have tried already and specifically
how it didn't work (error messages, etc.).
This isn't the right place to ask others to write a script for you.
-- Bill Stewart [Bill_Stewart]