Richard Parmiter

Virtualisation blog and Knowledge Base

  • You are here: 
  • Home
  • datestamp

Create date stamped log files

Posted on August 9th, 2008

Use the following to create date stamped log files

for /F “tokens=2,3,4 delims=/ ” %%i in (‘date /t’) do set datefile=%%i%%j%%k.log
Query User > %datefile%

Place in a cmd batch file and run on a schedule to create the logs.

Tags: , , , , , ,
Filed under Scripts/Reg | No Comments »