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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -