Thank you for your reply.
I have two question about your stored procedure:
1) do i have to activate in the Surface area configuration the xp_cmdshell to use your procedure?
2) Where do you stored this stored procedure? In the MSDB or in the Master Database?
Thank you