You can use xp_cmdshell to run any DOS commands, for example,
declare @cmdstring varchar(1000)
set @cmdstring = 'copy \\myServer\Admin\temp\testtemp.txt \\myServer\Admin\temp\Copytesttemp.txt'
exec master..xp_cmdshell @cmdstring
Just make sure xp_cmdshell is included in your installation.
source
share