freedom83
Извини, недоглядел
Исправленный код:
Код:
@echo off
setlocal enabledelayedexpansion
set source=c:\dir1\
set dest=c:\dir2\
set cdate=%date:,=%
for %%a in (%source%*.txt) do (
set fdate=%%~ta
set fdate=!fdate:~0,10!
set fdate=!fdate:,=!
if not !fdate!==!cdate! move "%%a" %dest%
Извини, недоглядел
Исправленный код:
Код:
@echo off
setlocal enabledelayedexpansion
set source=c:\dir1\
set dest=c:\dir2\
set cdate=%date:,=%
for %%a in (%source%*.txt) do (
set fdate=%%~ta
set fdate=!fdate:~0,10!
set fdate=!fdate:,=!
if not !fdate!==!cdate! move "%%a" %dest%