Return to Snippet

Revision: 69419
at June 16, 2015 12:50 by brm


Initial Code
@echo off

FOR /F %%I IN ('DIR "\\src-dir\file*.ext" /B /O:-D') DO XCOPY "\\src-dir\%%I" "\\dst-dir\filename.ext" /D /V /Y

cls

Initial URL


Initial Description
batch script to copy newest file from directory to another directory

Initial Title
Copy newest file

Initial Tags


Initial Language
DOS Batch