Copy newest file from folder

March 15, 2013 at 04:08:30
Specs: Windows XP
I want code in batch programming
i have thousands of file ilke
MARTY 12-03-2012
BATCY 15-01-2013
JYTCHE 10-12-2011

this type of file i have so i want to find newest date file and save on destination folder

in above list newest file BATCY 15-01-2013
so copy this file to destination folder

i want this code in batch programming

See More: Copy newest file from folder

Report •

March 15, 2013 at 12:46:29
@echo off & setlocal
for /f "tokens=*" %%a in ('dir /b /o-d *-*-*') do copy %%a dest_dir & goto :eof

Report •
Related Solutions

Ask Question