• Yep, Jeff is right that you can use redirection from a command line.

    If you need to do this inside SQL Server, you can use xp_cmdshell to call this in a shell.