Thanks for the replies and the ideas. There's also a master stored procedure (xp_cmdshell) that can be called.