lazygc520 当前离线
少尉
评分人数
apang 当前离线
上将
@echo off for %%a in (*.rar) do ( for /f %%b in ("%%~ta") do ( if "%%b"=="%date:~,10%" copy "%%a" "D:\指定路径\" ) ) pause复制代码
TOP
apang 发表于 2013-8-14 11:10
@echo off for /f %%a in ('wmic os get localdatetime^|findstr "^[1-9]"') do set t=%%a set "re=%t:~,8%\.rar$" pushd "E:\rar文件所在目录\" for /f "delims=" %%a in ('dir /a-d/b^|findstr /i "%re%"') do ( copy "%%a" "D:\指定路径\" ) pause复制代码
juan1923 当前离线
列兵
回复 lazygc520 apang 发表于 2013-8-14 17:30
@echo off setlocal enabledelayedexpansion :: 下一行 ds=为获取前第几天的日期(可自行修改) set d ... juan1923 发表于 2013-8-22 13:52
@echo off %1mshta vbscript:createobject("wscript.shell").run("""%~0"" : "^&year(date-1)*10000+month(date-1)*100+day(date-1))(window.close)&exit/b pushd "D:\Label_Barcode\CvtBarcodeSystm\dbbakup\" copy "*_%2.rar" "X:\database backup\" pause复制代码