rem user_log.bat echo off cls echo Hi there %username% >>log.txt echo Today's date is: %date% >>log.txt echo The time is: %time% >>log.txt copy log.txt %username%.log type %username%.log pause