Richard Parmiter

Virtualisation blog and Knowledge Base

  • You are here: 
  • Home
  • Create date stamped log files

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.

  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • FriendFeed
  • Google Buzz
  • LinkedIn
  • Live
  • MySpace
  • Reddit
  • RSS

Tags: , , , , , ,
Filed under Scripts/Reg |

Leave a Reply

*