zhou926 当前离线
二级士官
xcopy /e /f /h "D:\Program Files\MySQL\MySQL Server 5.0\data" e:\data\ Set dt=%date:~5,2%-%date:~8,2%-%time:~0,2% rar a -ibck -r -s -df -m5 -ep1 E:\%dt%.rar "E:\data"复制代码
评分人数
Hello123World 当前离线
荣誉版主
TOP
CrLf 当前离线
论坛巡查
rar a -ag"YYYYMMDDHHMMSS" .rar *.txt rar a -ag"YYYY-MM-DD HH:MM.SS" .rar *.txt ::只要是合法文件名,格式怎么写都行。。。不过要注意分钟和月份的关系复制代码
lvsehuaxue 当前离线
六级士官
@echo off&setlocal enabledelayedexpansion set "str=%time%" set "str1=!str:*:=!" call echo %%str::!str1!=%%复制代码
601997526 当前离线
xcopy /e /f /h "D:\Program Files\MySQL\MySQL Server 5.0\data" e:\data\ if %time:~0,2% lss 10 (set t=0%time:~1,1%) else set t=%time:~0,2% Set dt=%date:~5,2%-%date:~8,2%-%t% rar a -ibck -r -s -df -m5 -ep1 E:\%dt%.rar "E:\data"复制代码