Windows下备份bat脚本

bat脚本,用于工作会议PPT备份,ppt.bat

@echo off
echo "Start Backuping"

set h=%time:~0,2%
set h=%h: =0%
set bak_filename=%date:~0,4%%date:~5,2%%date:~8,2%%h%%time:~3,2%%time:~6,2%

set sourcepath="E:\PPT"
set despath=E:\备份目录\%bak_filename%

xcopy  %sourcepath%  %despath% /e /i 
rd /s/q %sourcepath%\ &cd ..&cd E:&md %sourcepath%

echo "Finished !"

pause


你可能感兴趣的:(Windows下备份bat脚本)