Zhong,
I was able to do a find and replace for the lines that appeared in the code.
I am in the process of going thru the procedures to understand what they do.
I have been working on a process to do the automated restores to verify the backups.
It looks like your code will help move thing along.
Thank you for sharing your code.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92