Copy file with current date Windows

/ Published in: DOS Batch
Save to your folder(s)

Copy file as current date as name file to destination directory

Copy this code and paste it in your HTML
  1. @echo off
  3. echo f | xcopy /f /Y "\\src-dir\filename.ext" "\dest-dir\filename_%date:~-4,4%%date:~-10,2%%date:~-7,2%.ext"
  5. cls

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.