windows 7 x64 - Batch file copy with date and time -


i'm trying figure out need help. need make program copy's log file , rename date , time different directory. prior loading program not sure how if great.

here's batch file copy log files archive folder appending date each:

@echo off @for /f "tokens=1,2,3 delims=/ " %%a in ('date /t') @(  set day=%%a set month=%%b set year=%%c set all=%%c%%b%%a ) @for %%a in ("*.log") copy %%a "archive\%%~na_%all%.log" 

Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -