@echo off
net use m: \\192.168.1.3\D$\SqlBack "password" /user:username
C:\progra~1\winrar\winrar.exe a -ag-A -k -r -s -ibck d:\back\back.rar m:\
net use m: /del
exit
username 和 password 分别是sql备份所在服务器的系统用户名和密码;
\\192.168.1.3\D$\SqlBack 是sql备份所在目录
d:\back\back.rar 新建的备份文件