以前虽然了解windows的批处理,但因其功能不如linux下的shell强大,所以一直没有对其深入研究。后来因工作需要,常常要做一些备份的工作。总结了一些批处理方面的代码。
@echo off
rem 保存当天的工作进度,以日期为名称
cls
color 3a
echo *****************************AutoBackup System 1.0*****************************
echo Author:DiligentCat
echo Date:2010-08-19
echo.
echo.
echo Backing File,Please wait……
set filename="e:\crm备份\crm.rar"
winrar a -ag -k -r -s %filename% d:\crm0809\replace\
echo.
if errorlevel==1 (
echo 备份失败!
) else if errorlevel ==0 (
echo 备份成功!
)
echo *****************************Complate!!!!!!!!**************************
pause
979

被折叠的 条评论
为什么被折叠?



