Copy newest file
batch script to copy newest file from directory to another directory
Copy this code and paste it in your HTML
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
Report this snippet
Comments
Subscribe to comments