[Solved] move file based on the less than max system modified date available
I don’t know if you were aware, but the other step you tried was powershell.exe code not cmd.exe. Something similar to this may do what you require: @Echo Off Set “dirSrc=C:\App\Folder1” Set “dirDst=C:\App\Folder2” Set “extSrc=*.txt” If Exist “%dirSrc%\%extSrc%” (CD /D “%dirSrc%” 2>Nul || Exit /B ) Else Exit /B If Not Exist “%dirDst%\” (MD “%dirDst%” … Read more