Can someone tell me how to mark a post as the answer? I don't know how to do it.
The answers above are good. They aren't what I ended up doing, but they are good.
I changed the steps that used the Operating System to use xp_cmdshell (which I know is a security risk). But the cscript command would not work with using the Operating System option. It would only work with xp_cmdshell.
I would like to award points (I assume this site does that) to the correct answer.
Thank you.
Tammy