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"复制代码
评分人数
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"复制代码
TOP
lvsehuaxue 当前离线
@echo off&setlocal enabledelayedexpansion set "str=%time%" set "str1=!str:*:=!" call echo %%str::!str1!=%%复制代码
CrLf 当前离线
论坛巡查
rar a -ag"YYYYMMDDHHMMSS" .rar *.txt rar a -ag"YYYY-MM-DD HH:MM.SS" .rar *.txt ::只要是合法文件名,格式怎么写都行。。。不过要注意分钟和月份的关系复制代码
Hello123World 当前离线
荣誉版主