Check the following link which might help you:
http://www.sqlservercentral.com/Forums/Topic782209-24-1.aspx
http://www.sqlservercentral.com/Forums/Topic1041837-357-1.aspx
http://community.spiceworks.com/topic/282881-automated-restore-of-sql-2008-database
HTH
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."